diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-23 14:58:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-23 14:58:02 +0300 |
commit | 00d2cf3ddbdbe1162435249ad4cb359ca70b357a (patch) | |
tree | 0882f94a8d894c07a5a73c860e4df5d9c0b6ef57 /source/blender/editors/space_action/action_ops.c | |
parent | 67888ee34b61130113e6b8fc439ff6b50d4078a1 (diff) |
2.5 Action Editor - Brought back Select All (AKEY)
Now, selecting keyframes with mouse behaves more like before.
Note: this still mostly uses old code, since other parts of code also call this. For later, it'd be nice to store as RNA prop, method of selecting.
Diffstat (limited to 'source/blender/editors/space_action/action_ops.c')
-rw-r--r-- | source/blender/editors/space_action/action_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c index 9a64a026f81..4fafb176a92 100644 --- a/source/blender/editors/space_action/action_ops.c +++ b/source/blender/editors/space_action/action_ops.c @@ -63,6 +63,7 @@ void action_operatortypes(void) /* keyframes */ WM_operatortype_append(ED_ACT_OT_keyframes_clickselect); + WM_operatortype_append(ED_ACT_OT_keyframes_deselectall); } /* ************************** registration - keymaps **********************************/ @@ -73,6 +74,9 @@ static void action_keymap_keyframes (ListBase *keymap) WM_keymap_add_item(keymap, "ED_ACT_OT_keyframes_clickselect", SELECTMOUSE, KM_PRESS, 0, 0); RNA_boolean_set(WM_keymap_add_item(keymap, "ED_ACT_OT_keyframes_clickselect", SELECTMOUSE, KM_PRESS, KM_SHIFT, 0)->ptr, "extend_select", 1); RNA_boolean_set(WM_keymap_add_item(keymap, "ED_ACT_OT_keyframes_clickselect", SELECTMOUSE, KM_PRESS, KM_ALT, 0)->ptr, "left_right", 1); + + /* deselect all */ + WM_keymap_add_item(keymap, "ED_ACT_OT_keyframes_deselectall", AKEY, KM_PRESS, 0, 0); } /* --------------- */ |