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:
authorJulian Eisel <julian@blender.org>2020-08-05 22:26:39 +0300
committerJulian Eisel <julian@blender.org>2020-08-05 22:34:00 +0300
commitc606044157a3a618938d439f527377366624cbaa (patch)
treeeed58d96f39ecd51e6e63379abf6191a56da0187
parentc323f3e90a4a0d15e7d9e844e0473ed62a25862f (diff)
Fix double-click not opening directories on some touch-pads
The file.execute() operator is the one that actually opened directories and files, not file.select() with the "open" option, as it was assumed when changing the keymap to double-click for opening. It only acts on the current selection though, so we have to ensure the selection is set on the first click. Now, some touch-pads have a delay until they register a click event, so the double-click would be registered instead, before the selection is set. Always select on mouse-down now and remove the unnecessary select operator call on double-click.
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py3
1 files changed, 1 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 950d8b0c768..6ce3ab6becb 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -1927,9 +1927,8 @@ def km_file_browser_main(params):
("file.execute", {"type": 'LEFTMOUSE', "value": 'DOUBLE_CLICK'},
{"properties": [("need_active", True)]}),
("file.refresh", {"type": 'NUMPAD_PERIOD', "value": 'PRESS'}, None),
- ("file.select", {"type": 'LEFTMOUSE', "value": 'CLICK'},
+ ("file.select", {"type": 'LEFTMOUSE', "value": 'PRESS'},
{"properties": [("open", False), ("deselect_all", not params.legacy)]}),
- ("file.select", {"type": 'LEFTMOUSE', "value": 'DOUBLE_CLICK'}, None),
("file.select", {"type": 'LEFTMOUSE', "value": 'CLICK', "ctrl": True},
{"properties": [("extend", True), ("open", False)]}),
("file.select", {"type": 'LEFTMOUSE', "value": 'CLICK', "shift": True},