UI: show workspace cycling key bindings in menu

This commit is contained in:
Campbell Barton 2018-12-14 07:55:12 +11:00
parent 7d3b1cdd7d
commit cb5d23b544
1 changed files with 8 additions and 0 deletions

View File

@ -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'