DopeSheet + Graph Editor hotkey tweak:
authorJoshua Leung <aligorith@gmail.com>
Sun, 27 Dec 2009 01:36:32 +0000 (01:36 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 27 Dec 2009 01:36:32 +0000 (01:36 +0000)
Made the TAB key toggle the editability of selected channels in the keyframes area in addition to the channels list.

source/blender/editors/space_action/action_ops.c
source/blender/editors/space_graph/graph_ops.c

index 68c354b2b871d90a28c4fc458b329dab3e9b51ed..f02974c2ea4813c43bf3d209ec209dffc0b83629 100644 (file)
@@ -155,11 +155,14 @@ static void action_keymap_keyframes (wmKeyConfig *keyconf, wmKeyMap *keymap)
        WM_keymap_add_item(keymap, "ACTION_OT_previewrange_set", PKEY, KM_PRESS, KM_CTRL|KM_ALT, 0);
        WM_keymap_add_item(keymap, "ACTION_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
        
+       /* animation module */
+               /* channels list 
+                * NOTE: these operators were originally for the channels list, but are added here too for convenience...
+                */
+       WM_keymap_add_item(keymap, "ANIM_OT_channels_editable_toggle", TABKEY, KM_PRESS, 0, 0);
+       
        /* transform system */
        transform_keymap_for_space(keyconf, keymap, SPACE_ACTION);
-       
-               /* test */
-       /* WM_keymap_add_item(keymap, "ACTION_OT_test", QKEY, KM_PRESS, 0, 0); */
 }
 
 /* --------------- */
@@ -171,7 +174,7 @@ void action_keymap(wmKeyConfig *keyconf)
        /* channels */
        /* Channels are not directly handled by the Action Editor module, but are inherited from the Animation module. 
         * All the relevant operations, keymaps, drawing, etc. can therefore all be found in that module instead, as these
-        * are all used for the IPO-Editor too.
+        * are all used for the Graph-Editor too.
         */
        
        /* keyframes */
index 5b62761ae74f0646cb764a3759bcb4787121f004..295ee86997942535bfb839bb3f4036bb4fa8f65c 100644 (file)
@@ -351,6 +351,11 @@ static void graphedit_keymap_keyframes (wmKeyConfig *keyconf, wmKeyMap *keymap)
                /* F-Modifiers */
        RNA_boolean_set(WM_keymap_add_item(keymap, "GRAPH_OT_fmodifier_add", MKEY, KM_PRESS, KM_CTRL|KM_SHIFT, 0)->ptr, "only_active", 0);
        
+       /* animation module */
+               /* channels list 
+                * NOTE: these operators were originally for the channels list, but are added here too for convenience...
+                */
+       WM_keymap_add_item(keymap, "ANIM_OT_channels_editable_toggle", TABKEY, KM_PRESS, 0, 0);
        
        /* transform system */
        transform_keymap_for_space(keyconf, keymap, SPACE_IPO);