[Keymap] Initial commit for keyboardio/atreus/dshields keymap. (#11946)

Incorporating changes suggested during pull request review.

Co-authored-by: Daniel Shields <[email protected]>
This commit is contained in:
Daniel ShieldsandDaniel Shields authored and GitHub committed 2021-02-28 17:07:55 +11:00
1 parent 371fb853ee
commit d6fb8f12c6
3 files changed
+52

No files matched your search

+5
View File
@@ -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;