Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-11-29 10:13:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-29 10:17:08 +0300
commit301e3155ecbeed7c1a362a56edcb252a124a810e (patch)
tree98c75622676b0173d5c65c3d10b6fd6c203bb9da /release/scripts/presets
parent8055871e5be765958d11160e086c0e5589fefe48 (diff)
Keymap: cycle space-subtypes on successive presses
Some space types are exposed as multiple space types, previously the key binding to set the space type would use the last used space-type. Now pressing the key again cycles to the next space sub-type. Without this, shortcut display is confusing since some space types share a key. Keymap display will need to be updated to support this.
Diffstat (limited to 'release/scripts/presets')
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index f076b9db706..ae7ef4086b8 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -292,9 +292,9 @@ def km_window(params):
# Fast editor switching
*(
- ("wm.context_set_enum",
+ ("screen.space_type_set_or_cycle",
{"type": k, "value": 'PRESS', "shift": True},
- {"properties": [("data_path", 'area.type'), ("value", t)]})
+ {"properties": [("space_type", t)]})
for k, t in (
('F4', 'CONSOLE'),
('F5', 'VIEW_3D'),