New Window Operator (to replace Duplicate Window)
A user doesn't want to necessarily create a new Screen only because she wants a new window. This patch allows the user to pick the screen to use for the new Window. If the screen picked is the active one, it duplicates it (as the old behaviour in Blender). Patch with contributions and fixes by Julian Eisel (Severin) Subscribers: venomgfx Differential Revision: https://developer.blender.org/D2555
This commit is contained in:
@@ -7,7 +7,7 @@ kc = wm.keyconfigs.new('3dsmax')
|
||||
# Map Window
|
||||
km = kc.keymaps.new('Window', space_type='EMPTY', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('wm.window_duplicate', 'W', 'PRESS', ctrl=True, alt=True)
|
||||
kmi = km.keymap_items.new('wm.window_new', 'W', 'PRESS', ctrl=True, alt=True)
|
||||
kmi = km.keymap_items.new('wm.read_homefile', 'N', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.save_homefile', 'U', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.call_menu', 'O', 'PRESS', shift=True, ctrl=True)
|
||||
|
@@ -8,7 +8,7 @@ kc = wm.keyconfigs.new(os.path.splitext(os.path.basename(__file__))[0])
|
||||
# Map Window
|
||||
km = kc.keymaps.new('Window', space_type='EMPTY', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('wm.window_duplicate', 'W', 'PRESS', ctrl=True, alt=True)
|
||||
kmi = km.keymap_items.new('wm.window_new', 'W', 'PRESS', ctrl=True, alt=True)
|
||||
kmi = km.keymap_items.new('wm.read_homefile', 'N', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.save_homefile', 'U', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.call_menu', 'O', 'PRESS', shift=True, ctrl=True)
|
||||
|
@@ -281,7 +281,7 @@ class INFO_MT_window(Menu):
|
||||
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("wm.window_duplicate")
|
||||
layout.operator("wm.window_new")
|
||||
layout.operator("wm.window_fullscreen_toggle", icon='FULLSCREEN_ENTER')
|
||||
|
||||
layout.separator()
|
||||
|
Reference in New Issue
Block a user