1
0
Fork 0

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:
James Turner 2013-03-08 14:02:19 +00:00
parent ce2d316e6d
commit 6fefc775d7

View file

@ -524,6 +524,11 @@ var cycleMouseMode = func(node)
if (!getprop("/sim/mouse/right-button-mode-cycle-enabled")) {
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');