Page MenuHome
Paste P940

D4559 adjustments
ActivePublic

Authored by Campbell Barton (campbellbarton) on Mar 20 2019, 10:27 PM.
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..019757d2e5f 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -962,6 +962,14 @@ class TOPBAR_MT_file_context_menu(Menu):
layout.menu("TOPBAR_MT_file_import", icon='IMPORT')
layout.menu("TOPBAR_MT_file_export", icon='EXPORT')
+ layout.separator()
+
+ layout.menu("TOPBAR_MT_window_context_menu", text="Window", icon='WINDOW')
+
+ layout.separator()
+
+ layout.operator("screen.userpref_show", text="Preferences...", icon='PREFERENCES')
+
class TOPBAR_MT_window_context_menu(Menu):
bl_label = "Window Context Menu"
@@ -987,10 +995,6 @@ class TOPBAR_MT_window_context_menu(Menu):
layout.operator("wm.window_fullscreen_toggle", icon='FULLSCREEN_ENTER')
- layout.separator()
-
- layout.operator("screen.userpref_show", text="Preferences...", icon='PREFERENCES')
-
class TOPBAR_MT_workspace_menu(Menu):
bl_label = "Workspace"