summaryrefslogtreecommitdiff
path: root/users/dshields/dshields.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/dshields/dshields.c')
-rw-r--r--users/dshields/dshields.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/dshields/dshields.c b/users/dshields/dshields.c
index 8f432a317c..13eab12d4a 100644
--- a/users/dshields/dshields.c
+++ b/users/dshields/dshields.c
@@ -2,6 +2,11 @@
#include "dshields.h"
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX)
+ || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)
+ || (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
+ keycode = keycode & 0xFF;
+ }
if (keycode == KC_ESC && record->event.pressed) {
bool rc = true;
uint8_t mods = 0;