diff options
author | Ofer Plesser <plesserofer@gmail.com> | 2016-12-23 21:51:11 +0200 |
---|---|---|
committer | Ofer Plesser <plesserofer@gmail.com> | 2016-12-23 21:51:11 +0200 |
commit | 01038ab54ca6c2858ea9e856c717a1129ffe4156 (patch) | |
tree | 4a3205a41c05fef7f977b27c23af412764064785 /quantum/quantum.c | |
parent | cae269b08b642b07ee06dec7120a784a3c3d7aab (diff) | |
download | qmk_firmware-01038ab54ca6c2858ea9e856c717a1129ffe4156.tar.gz |
Added check that makes sure a code is a right modifier before considering it as one
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index f653564a6..63ffe2074 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -21,6 +21,8 @@ static void do_code16 (uint16_t code, void (*f) (uint8_t)) { if (code & QK_LGUI) f(KC_LGUI); + if (code < QK_RMODS_MIN) return; + if (code & QK_RCTL) f(KC_RCTL); if (code & QK_RSFT) |