mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-27 11:38:58 +06:00
Merge pull request #968 from ofples/bugfix/right-modifiers
Fixed bug in do_code16
This commit is contained in:
commit
223cffd92f
@ -53,6 +53,7 @@ enum quantum_keycodes {
|
|||||||
QK_LSFT = 0x0200,
|
QK_LSFT = 0x0200,
|
||||||
QK_LALT = 0x0400,
|
QK_LALT = 0x0400,
|
||||||
QK_LGUI = 0x0800,
|
QK_LGUI = 0x0800,
|
||||||
|
QK_RMODS_MIN = 0x1000,
|
||||||
QK_RCTL = 0x1100,
|
QK_RCTL = 0x1100,
|
||||||
QK_RSFT = 0x1200,
|
QK_RSFT = 0x1200,
|
||||||
QK_RALT = 0x1400,
|
QK_RALT = 0x1400,
|
||||||
|
@ -21,6 +21,8 @@ static void do_code16 (uint16_t code, void (*f) (uint8_t)) {
|
|||||||
if (code & QK_LGUI)
|
if (code & QK_LGUI)
|
||||||
f(KC_LGUI);
|
f(KC_LGUI);
|
||||||
|
|
||||||
|
if (code < QK_RMODS_MIN) return;
|
||||||
|
|
||||||
if (code & QK_RCTL)
|
if (code & QK_RCTL)
|
||||||
f(KC_RCTL);
|
f(KC_RCTL);
|
||||||
if (code & QK_RSFT)
|
if (code & QK_RSFT)
|
||||||
|
Loading…
Reference in New Issue
Block a user