summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorDaniel Shields <1530706+shieldsd@users.noreply.github.com>2021-02-28 06:07:55 +0000
committerGitHub <noreply@github.com>2021-02-28 17:07:55 +1100
commitd6fb8f12c63e8ee5fe51e0f2d6710b4d026f7469 (patch)
treedc951a61391a499fbd73058a84d885c4b4eb2d82 /users
parent371fb853ee5a5004eab0ee09e5ad9b6978ba7531 (diff)
downloadqmk_firmware-d6fb8f12c63e8ee5fe51e0f2d6710b4d026f7469.tar.gz
qmk_firmware-d6fb8f12c63e8ee5fe51e0f2d6710b4d026f7469.zip
[Keymap] Initial commit for keyboardio/atreus/dshields keymap. (#11946)
Incorporating changes suggested during pull request review. Co-authored-by: Daniel Shields <dshields@cboe.com>
Diffstat (limited to 'users')
-rw-r--r--users/dshields/dshields.c5
-rw-r--r--users/dshields/dshields.h2
2 files changed, 7 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;
diff --git a/users/dshields/dshields.h b/users/dshields/dshields.h
index e1aa07a5db..54268210c9 100644
--- a/users/dshields/dshields.h
+++ b/users/dshields/dshields.h
@@ -15,6 +15,8 @@
// mod-tap keys
#define MT_SPC SFT_T(KC_SPC)
+#define MT_BSPC SFT_T(KC_BSPC)
+#define MT_ESC LGUI_T(KC_ESC)
// LED/RGB controls
#ifdef KEYBOARD_planck_light