From b91e96e26aaec3fc9065099c3e212b6571bfc4cf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 14 Feb 2014 18:21:57 +0100 Subject: TOON: Ignore hotkeys when *any* modifier is used. This makes, for example, META+d also be ignored and not only CTRL+d etc. --- engines/toon/toon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/toon') diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index d7895b5378..bbd81184bc 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -184,7 +184,7 @@ void ToonEngine::parseInput() { Common::Event event; while (_event->pollEvent(event)) { - const bool hasModifier = (event.kbd.flags & (Common::KBD_ALT|Common::KBD_CTRL|Common::KBD_SHIFT)) != 0; + const bool hasModifier = (event.kbd.flags & Common::KBD_NON_STICKY) != 0; switch (event.type) { case Common::EVENT_KEYDOWN: if ((event.kbd.ascii == 27 || event.kbd.ascii == 32) && !hasModifier) { -- cgit v1.2.3