diff options
author | Hans Goudey <h.goudey@me.com> | 2020-07-16 21:07:47 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-07-16 21:07:47 +0300 |
commit | 608d9b5aa1f199683a2e9fdd3b66b480779cb7ca (patch) | |
tree | 0252e7fae7154498fdb71ae67ce6219ebb823609 /release/scripts | |
parent | b13bbb22e4cb7b4cd21b33d1f1b165abcde5fe6e (diff) |
UI: Add shortcuts for constraint panels
Only the delete shortcut applies here, although the move up and down
operators can optionally be assigned in the keymap.
See rB1fa40c9f8a81 for more details and rB5d2005cbb54b for the
grease pencil modifier panel implementation, which is the same.
Some refactoring of the constraint delete operator was necessary,
including adding an invoke function.
Differential Revision: https://developer.blender.org/D8238
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index c8d0843e8dd..f9c5e077625 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -749,6 +749,9 @@ def km_property_editor(_params): # ShaderFX panels ("object.shaderfx_remove", {"type": 'X', "value": 'PRESS'}, {"properties": [("report", True)]}), ("object.shaderfx_remove", {"type": 'DEL', "value": 'PRESS'}, {"properties": [("report", True)]}), + # Constraint panels + ("constraint.delete", {"type": 'X', "value": 'PRESS'}, {"properties": [("report", True)]}), + ("constraint.delete", {"type": 'DEL', "value": 'PRESS'}, {"properties": [("report", True)]}), ]) return keymap |