aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/toon.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2014-02-14 18:21:57 +0100
committerJohannes Schickel2014-02-14 18:21:57 +0100
commitb91e96e26aaec3fc9065099c3e212b6571bfc4cf (patch)
tree499ad7523ab32dd78c21266190fc44dd108cbdde /engines/toon/toon.cpp
parentf5a77e1380db73b8d4a898e30a4e2b80366f5894 (diff)
downloadscummvm-rg350-b91e96e26aaec3fc9065099c3e212b6571bfc4cf.tar.gz
scummvm-rg350-b91e96e26aaec3fc9065099c3e212b6571bfc4cf.tar.bz2
scummvm-rg350-b91e96e26aaec3fc9065099c3e212b6571bfc4cf.zip
TOON: Ignore hotkeys when *any* modifier is used.
This makes, for example, META+d also be ignored and not only CTRL+d etc.
Diffstat (limited to 'engines/toon/toon.cpp')
-rw-r--r--engines/toon/toon.cpp2
1 files changed, 1 insertions, 1 deletions
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) {