diff options
author | Torbjörn Andersson | 2019-03-02 15:45:55 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2019-03-02 15:45:55 +0100 |
commit | b92341002552f2750e804a7ab19cb808b6260539 (patch) | |
tree | 621940b2acc950a859ed77561142ff337a993c9d | |
parent | 0def174fa0045a1e0063a0df6f665cb2a6ec8465 (diff) | |
download | scummvm-rg350-b92341002552f2750e804a7ab19cb808b6260539.tar.gz scummvm-rg350-b92341002552f2750e804a7ab19cb808b6260539.tar.bz2 scummvm-rg350-b92341002552f2750e804a7ab19cb808b6260539.zip |
GLK: Don't treat Caps, Num and Scroll Lock as standard keypresses
Technically, they're lock keys rather than modifier keys, but we
may as well treat them as the same thing here.
My keyboard doesn't have an F-lock key, and I can't find any key
code for it, so I don't know if that one has to be excluded too.
-rw-r--r-- | engines/glk/events.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/glk/events.cpp b/engines/glk/events.cpp index ed6ad9b243..f1ff970e91 100644 --- a/engines/glk/events.cpp +++ b/engines/glk/events.cpp @@ -371,7 +371,9 @@ bool Events::isModifierKey(const Common::KeyCode &keycode) const { return keycode == Common::KEYCODE_LCTRL || keycode == Common::KEYCODE_LALT || keycode == Common::KEYCODE_RCTRL || keycode == Common::KEYCODE_RALT || keycode == Common::KEYCODE_LSHIFT || keycode == Common::KEYCODE_RSHIFT - || keycode == Common::KEYCODE_LSUPER || keycode == Common::KEYCODE_RSUPER; + || keycode == Common::KEYCODE_LSUPER || keycode == Common::KEYCODE_RSUPER + || keycode == Common::KEYCODE_CAPSLOCK || keycode == Common::KEYCODE_NUMLOCK + || keycode == Common::KEYCODE_SCROLLOCK; } void Events::waitForPress() { |