From c606044157a3a618938d439f527377366624cbaa Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 5 Aug 2020 21:26:39 +0200 Subject: 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. --- release/scripts/presets/keyconfig/keymap_data/blender_default.py | 3 +-- 1 file changed, 1 insertion(+), 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}, -- cgit v1.2.3