diff options
author | Johannes Schickel | 2014-02-14 18:21:57 +0100 |
---|---|---|
committer | Johannes Schickel | 2014-02-14 18:21:57 +0100 |
commit | b91e96e26aaec3fc9065099c3e212b6571bfc4cf (patch) | |
tree | 499ad7523ab32dd78c21266190fc44dd108cbdde /engines/toon | |
parent | f5a77e1380db73b8d4a898e30a4e2b80366f5894 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/toon/toon.cpp | 2 |
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) { |