Fix a pair of think-os

Check `mappedKey` against `Key-1` / `Key_0`, because those are key objects.
`KEY_1` and `KEY_0` are entirely different things, and they only worked by pure
chance.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent 3ac9b54ca9
commit b673b51b2b

@ -88,7 +88,7 @@ namespace KaleidoscopePlugins {
// WAIT_FOR_CODE state
if (mappedKey < KEY_1 || mappedKey > KEY_0)
if (mappedKey < Key_1 || mappedKey > Key_0)
return mappedKey;
if (!key_toggled_on (keyState))

Loading…
Cancel
Save