summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorxyverz <xyverz@gmail.com>2017-01-08 21:47:08 -0800
committerxyverz <xyverz@gmail.com>2017-01-08 21:47:08 -0800
commit99521a448296902d15c597f4d2e170766c4afadb (patch)
tree8daa16747393c2cef6b897fbb88e74ef427df76e /quantum/quantum.c
parent79343f1c6cde28c454eac0a577d0d7dbf3aa2f17 (diff)
parent176b93d08eb5cc0c65a6d571fc2c1fec5f575854 (diff)
Merge remote-tracking branch 'upstream/master'
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)