summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-12-28 13:07:16 -0500
committerGitHub <noreply@github.com>2016-12-28 13:07:16 -0500
commit223cffd92f44311612aacbfb3358ec7a33a68d74 (patch)
tree410fd93d33810cb79486d5f623130c040a6b3e44 /quantum/quantum.c
parentd3ec88cd071b14f6ed29b5418474471e7538f1f6 (diff)
parent01038ab54ca6c2858ea9e856c717a1129ffe4156 (diff)
Merge pull request #968 from ofples/bugfix/right-modifiers
Fixed bug in do_code16
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index f653564a67..63ffe2074e 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)