diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-29 11:07:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-29 11:07:00 +0300 |
commit | 068b61e5e923f4619be927bf0a08f9afcaa78d9b (patch) | |
tree | 6b3c8b298c03324655a72336557366205e18f611 /release/scripts/startup/bl_ui/space_dopesheet.py | |
parent | 9f2bc87e57ee022cf97f8e274e9364323e7b88c2 (diff) |
UI: menu items for Ctrl-Tab dope sheet/graph switching
Make this shortcut discoverable.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_dopesheet.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_dopesheet.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py index 5ef42dcd129..b57a0b69539 100644 --- a/release/scripts/startup/bl_ui/space_dopesheet.py +++ b/release/scripts/startup/bl_ui/space_dopesheet.py @@ -352,6 +352,12 @@ class DOPESHEET_MT_view(Menu): layout.operator("action.view_selected") layout.operator("action.view_frame") + # Add this to show key-binding (reverse action in dope-sheet). + layout.separator() + props = layout.operator("wm.context_set_enum", text="Toggle Graph Editor") + props.data_path = "area.type" + props.value = 'GRAPH_EDITOR' + layout.separator() layout.menu("INFO_MT_area") |