diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-02 17:20:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-02 17:25:06 +0300 |
commit | d596a6368cc62d198dd33dadd1cd0831d0de3dee (patch) | |
tree | bc1a70f5f4d7411726f0107161d4110de7578dc3 /release/scripts/presets | |
parent | 2e97d50d2d3bdba1ba151d96a6b40382f07785c4 (diff) |
Preference: option to use OS-Key to emulate MMB
Alt-LMB is used in quite a few areas now, see T69323
using OS-Key allows these conflicts to be avoided.
Currently disabled for WIN32, since it conflicts with the start menu.
Diffstat (limited to 'release/scripts/presets')
-rw-r--r-- | release/scripts/presets/keyconfig/blender.py | 5 | ||||
-rw-r--r-- | release/scripts/presets/keyconfig/blender_27x.py | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/release/scripts/presets/keyconfig/blender.py b/release/scripts/presets/keyconfig/blender.py index 8a7689d6d60..596b17d734f 100644 --- a/release/scripts/presets/keyconfig/blender.py +++ b/release/scripts/presets/keyconfig/blender.py @@ -169,7 +169,10 @@ def load(): keyconfig_data = blender_default.generate_keymaps( blender_default.Params( select_mouse=kc_prefs.select_mouse, - use_mouse_emulate_3_button=prefs.inputs.use_mouse_emulate_3_button, + use_mouse_emulate_3_button=( + prefs.inputs.use_mouse_emulate_3_button and + prefs.inputs.mouse_emulate_3_button_modifier == 'ALT' + ), spacebar_action=kc_prefs.spacebar_action, v3d_tilde_action=kc_prefs.v3d_tilde_action, use_select_all_toggle=kc_prefs.use_select_all_toggle, diff --git a/release/scripts/presets/keyconfig/blender_27x.py b/release/scripts/presets/keyconfig/blender_27x.py index 4ce77f46213..8d50d449494 100644 --- a/release/scripts/presets/keyconfig/blender_27x.py +++ b/release/scripts/presets/keyconfig/blender_27x.py @@ -53,7 +53,10 @@ def load(): keyconfig_data = blender_default.generate_keymaps( blender_default.Params( select_mouse=kc_prefs.select_mouse, - use_mouse_emulate_3_button=prefs.inputs.use_mouse_emulate_3_button, + use_mouse_emulate_3_button=( + prefs.inputs.use_mouse_emulate_3_button and + prefs.inputs.mouse_emulate_3_button_modifier == 'ALT' + ), spacebar_action='SEARCH', use_select_all_toggle=True, use_gizmo_drag=False, |