diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-14 01:38:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-14 01:44:13 +0300 |
commit | b42333fba63b814e1762d277cd1cdb0c01ba0d27 (patch) | |
tree | cb8e723ffaf84fb0f1a413b6f339b7772e5d77cf /release/scripts/presets/keyconfig/blender.py | |
parent | bdeb9f047a12bcb718de5b2f4a72d418cf3b1f99 (diff) |
Keymap: preference for alternate tap action for some pie menus
This allows secondary keys on tap.
Currently Z-key to toggle wireframe and tilde for navigation.
This is currently experimental, if users like this the preference
can be kept and used where appropriate.
Diffstat (limited to 'release/scripts/presets/keyconfig/blender.py')
-rw-r--r-- | release/scripts/presets/keyconfig/blender.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/release/scripts/presets/keyconfig/blender.py b/release/scripts/presets/keyconfig/blender.py index 9db6df35662..c4db99b9aae 100644 --- a/release/scripts/presets/keyconfig/blender.py +++ b/release/scripts/presets/keyconfig/blender.py @@ -81,6 +81,19 @@ class Prefs(bpy.types.KeyConfigPreferences): default=False, update=update_fn, ) + # Developer note, this is an experemental option. + use_pie_click_drag: BoolProperty( + name="Pie Menu on Drag", + description=( + "Activate some pie menus on drag,\n" + "allowing the tapping the same key to have a secondary action.\n" + "\n" + "\u2022 Tapping Z in the 3D view toggles wireframe.\n" + "\u2022 Tapping Tilde in the 3D view for first person navigation" + ), + default=False, + update=update_fn, + ) def draw(self, layout): split = layout.split() @@ -97,6 +110,7 @@ class Prefs(bpy.types.KeyConfigPreferences): split = layout.split() col = split.column() col.prop(self, "use_v3d_tab_menu") + col.prop(self, "use_pie_click_drag") col = split.column() col.prop(self, "use_v3d_shade_ex_pie") @@ -120,6 +134,7 @@ def load(): use_select_all_toggle=kc_prefs.use_select_all_toggle, use_v3d_tab_menu=kc_prefs.use_v3d_tab_menu, use_v3d_shade_ex_pie=kc_prefs.use_v3d_shade_ex_pie, + use_pie_click_drag=kc_prefs.use_pie_click_drag, ), ) keyconfig_init_from_data(kc, keyconfig_data) |