From 6fefc775d7de020e43cbfdfac125ef57db936f07 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 8 Mar 2013 14:02:19 +0000 Subject: [PATCH] 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. --- Nasal/controls.nas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Nasal/controls.nas b/Nasal/controls.nas index 9dea79d96..09232cf55 100644 --- a/Nasal/controls.nas +++ b/Nasal/controls.nas @@ -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');