Keymap: use Ctrl-Tab to toggle fcurve/graph editor

Suggested by Pablo Vazquez.
This commit is contained in:
Campbell Barton 2018-11-22 05:56:04 +11:00
parent 0a3cf08364
commit 44612e07fe
1 changed files with 4 additions and 0 deletions

View File

@ -1218,6 +1218,8 @@ def km_graph_editor_generic(_params):
("graph.hide", {"type": 'H', "value": 'PRESS', "shift": True},
{"properties": [("unselected", True)]}),
("graph.reveal", {"type": 'H', "value": 'PRESS', "alt": True}, None),
("wm.context_set_enum", {"type": 'TAB', "value": 'PRESS', "ctrl": True},
{"properties": [("data_path", 'area.type'), ("value", 'DOPESHEET_EDITOR')]}),
])
return keymap
@ -1749,6 +1751,8 @@ def km_dopesheet_generic(_params):
items.extend([
("action.properties", {"type": 'N', "value": 'PRESS'}, None),
("wm.context_set_enum", {"type": 'TAB', "value": 'PRESS', "ctrl": True},
{"properties": [("data_path", 'area.type'), ("value", 'GRAPH_EDITOR')]})
])
return keymap