Ignore tab-switches-mouse-mode if modifiers are set.
Clement confirmed that we're still get the tab key for alt-tab and ctrl-tab, which is bad. Explicitly ignore it for now.
This commit is contained in:
parent
ce2d316e6d
commit
6fefc775d7
1 changed files with 5 additions and 0 deletions
|
@ -524,6 +524,11 @@ var cycleMouseMode = func(node)
|
||||||
if (!getprop("/sim/mouse/right-button-mode-cycle-enabled")) {
|
if (!getprop("/sim/mouse/right-button-mode-cycle-enabled")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (reason == "key-press") {
|
||||||
|
# ignore alt-tab / ctrl-tab
|
||||||
|
if (getprop('devices/status/keyboard/ctrl') or getprop('devices/status/keyboard/alt')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var modeNode = props.globals.getNode('/devices/status/mice/mouse[0]/mode');
|
var modeNode = props.globals.getNode('/devices/status/mice/mouse[0]/mode');
|
||||||
|
|
Loading…
Reference in a new issue