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.
This commit is contained in:
parent
c323f3e90a
commit
c606044157
Notes:
blender-bot
2023-02-14 10:04:50 +01:00
Referenced by commit36f5967b99
, Fix T93650: Asset drag into catalogs broken, Industry Compatible keymap Referenced by commitba2d1c8898
, Fix T79738: Double Click does not opening folders in File Browser Referenced by issue #79616, Sort by column in filebrowser is broken
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue