[Bf-blender-cvs] [cb5d23b5447] blender2.8: UI: show workspace cycling key bindings in menu

Campbell Barton noreply at git.blender.org
Thu Dec 13 22:00:10 CET 2018


Commit: cb5d23b54474b773764b6592b61d84c1d0f2080f
Author: Campbell Barton
Date:   Fri Dec 14 07:55:12 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBcb5d23b54474b773764b6592b61d84c1d0f2080f

UI: show workspace cycling key bindings in menu

===================================================================

M	release/scripts/startup/bl_ui/space_topbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 1192dbf74cd..01c9b355be8 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -1009,6 +1009,14 @@ class TOPBAR_MT_workspace_menu(Menu):
         layout.operator("workspace.reorder_to_front", text="Reorder to Front", icon='TRIA_LEFT_BAR')
         layout.operator("workspace.reorder_to_back", text="Reorder to Back", icon='TRIA_RIGHT_BAR')
 
+        layout.separator()
+
+        # For key binding discoverability.
+        props = layout.operator("screen.workspace_cycle", text="Previous Workspace")
+        props.direction = 'PREV'
+        props = layout.operator("screen.workspace_cycle", text="Next Workspace")
+        props.direction = 'NEXT'
+
 
 class TOPBAR_PT_active_tool(Panel):
     bl_space_type = 'PROPERTIES'



More information about the Bf-blender-cvs mailing list