From b92341002552f2750e804a7ab19cb808b6260539 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 2 Mar 2019 15:45:55 +0100 Subject: 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. --- engines/glk/events.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3