Movie clip editor: graph view now can be toggled using Z key

This commit is contained in:
Sergey Sharybin
2012-01-26 09:53:58 +00:00
parent dc4e37c764
commit 969c87b5af

View File

@@ -420,6 +420,11 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
RNA_enum_set(kmi->ptr, "mode", SC_MODE_DISTORTION);
RNA_boolean_set(kmi->ptr, "toggle", TRUE);
kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle_enum", ZKEY, KM_PRESS, 0, 0);
RNA_string_set(kmi->ptr, "data_path", "space_data.view");
RNA_string_set(kmi->ptr, "value_1", "CLIP");
RNA_string_set(kmi->ptr, "value_2", "GRAPH");
/* ******** Hotkeys avalaible for main region only ******** */
keymap= WM_keymap_find(keyconf, "Clip Editor", SPACE_CLIP, 0);