diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-21 14:58:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-21 15:03:17 +0300 |
commit | bd1299f6a4398e06db00d77f9ea7382f9e7bcf53 (patch) | |
tree | e5d9b6956eb0c61de2b2c6f23b7db6a15fd1766c /release | |
parent | 75b14db6a969b43121884befd15e990cd4e5f5fa (diff) |
Keymap: Use F4 for file context menu
- Replace Window context menu with File menu.
This was recently removed however artists in the studio use
link/append often.
- Add preferences to this menu so `F4, PKey` can still be used as a
quick way to access preferences.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 26 |
2 files changed, 1 insertions, 27 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 6fffad012df..ce94608cad6 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -349,7 +349,7 @@ def km_window(params): ("wm.doc_view_manual_ui_context", {"type": 'F1', "value": 'PRESS'}, None), op_panel("TOPBAR_PT_name", {"type": 'F2', "value": 'PRESS'}, [("keep_open", False)]), ("wm.search_menu", {"type": 'F3', "value": 'PRESS'}, None), - op_menu("TOPBAR_MT_window_context_menu", {"type": 'F4', "value": 'PRESS'}), + op_menu("TOPBAR_MT_file_context_menu", {"type": 'F4', "value": 'PRESS'}), ]) if params.spacebar_action == 'TOOL': diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 0277f6fe129..0e687452e5c 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -962,31 +962,6 @@ class TOPBAR_MT_file_context_menu(Menu): layout.menu("TOPBAR_MT_file_import", icon='IMPORT') layout.menu("TOPBAR_MT_file_export", icon='EXPORT') - -class TOPBAR_MT_window_context_menu(Menu): - bl_label = "Window Context Menu" - - def draw(self, context): - layout = self.layout - - layout.operator_context = 'EXEC_AREA' - - layout.operator("wm.window_new") - layout.operator("wm.window_new_main") - - layout.operator_context = 'INVOKE_AREA' - - layout.operator("screen.area_dupli", icon='DUPLICATE') - - layout.separator() - - layout.operator("screen.area_split", text="Horizontal Split").direction = 'HORIZONTAL' - layout.operator("screen.area_split", text="Vertical Split").direction = 'VERTICAL' - - layout.separator() - - layout.operator("wm.window_fullscreen_toggle", icon='FULLSCREEN_ENTER') - layout.separator() layout.operator("screen.userpref_show", text="Preferences...", icon='PREFERENCES') @@ -1146,7 +1121,6 @@ classes = ( TOPBAR_HT_upper_bar, TOPBAR_HT_lower_bar, TOPBAR_MT_file_context_menu, - TOPBAR_MT_window_context_menu, TOPBAR_MT_workspace_menu, TOPBAR_MT_editor_menus, TOPBAR_MT_file, |