diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-05 06:54:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-05 06:54:27 +0300 |
commit | 91fa07dfb18f35783177db47d4c721e5a03aad43 (patch) | |
tree | db8f50d8dbf65a162090164e39c4c843d3fdb906 /release | |
parent | 8b4f00269c91cff040792717122d959392141ad3 (diff) |
Text: merge toggle comments into a single operator
This allows users to map comment/un-comment to be mapped to keys.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 78fd2fe8008..8a35a937928 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -2189,7 +2189,7 @@ def km_text(params): {"properties": [("direction", 'DOWN')]}), ("text.indent", {"type": 'TAB', "value": 'PRESS'}, None), ("text.unindent", {"type": 'TAB', "value": 'PRESS', "shift": True}, None), - ("text.toggle_comment", {"type": 'SLASH', "value": 'PRESS', "ctrl": True}, None), + ("text.comment_toggle", {"type": 'SLASH', "value": 'PRESS', "ctrl": True}, None), ("text.move", {"type": 'HOME', "value": 'PRESS'}, {"properties": [("type", 'LINE_BEGIN')]}), ("text.move", {"type": 'END', "value": 'PRESS'}, diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 7a50b690ad8..91984131464 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -291,9 +291,7 @@ class TEXT_MT_format(Menu): layout.separator() - layout.operator("text.comment") - layout.operator("text.uncomment") - layout.operator("text.toggle_comment") + layout.operator("text.comment_toggle") layout.separator() |