Fix T58657: blender 2.7 keymap Alt+A does not work for animation playback.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 4 Jan 2019 13:34:07 +0000 (14:34 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 4 Jan 2019 13:45:16 +0000 (14:45 +0100)
release/scripts/presets/keyconfig/keymap_data/blender_default.py

index 30d2f2ee862ef57d2beef085b5b2318658ad48f5..f7ef464ccafae0b72add963d9f639057c68f7d4b 100644 (file)
@@ -152,6 +152,12 @@ def _template_items_select_actions(params, operator):
             (operator, {"type": 'I', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'INVERT')]}),
             (operator, {"type": 'A', "value": 'DOUBLE_CLICK'}, {"properties": [("action", 'DESELECT')]}),
         ]
             (operator, {"type": 'I', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'INVERT')]}),
             (operator, {"type": 'A', "value": 'DOUBLE_CLICK'}, {"properties": [("action", 'DESELECT')]}),
         ]
+    elif params.legacy:
+        # Alt+A is for playback in legacy keymap.
+        return [
+            (operator, {"type": 'A', "value": 'PRESS'}, {"properties": [("action", 'TOGGLE')]}),
+            (operator, {"type": 'I', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'INVERT')]}),
+        ]
     else:
         return [
             (operator, {"type": 'A', "value": 'PRESS'}, {"properties": [("action", 'TOGGLE')]}),
     else:
         return [
             (operator, {"type": 'A', "value": 'PRESS'}, {"properties": [("action", 'TOGGLE')]}),