mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-05 15:14:17 -04:00
Trying Pascal's Shift Backspace
- like the idea of holding shift backspace to get delete. one less combo - https://getreuer.info/posts/keyboards/macros3/index.html
This commit is contained in:
parent
989698c004
commit
997da149e6
1 changed files with 13 additions and 0 deletions
|
@ -41,6 +41,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
case KC_BSPC: {
|
||||||
|
|
||||||
|
bool isShift = ( (get_mods() & MOD_BIT(KC_LSFT)) || (get_oneshot_mods() & MOD_BIT(KC_LSFT)) );
|
||||||
|
|
||||||
|
if (record->event.pressed) {
|
||||||
|
isShift ? register_code(KC_DEL) : register_code(KC_BSPC);
|
||||||
|
} else {
|
||||||
|
isShift ? unregister_code(KC_DEL) : unregister_code(KC_BSPC);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//https://docs.qmk.fm/#/mod_tap?id=changing-both-tasp-and-hold
|
//https://docs.qmk.fm/#/mod_tap?id=changing-both-tasp-and-hold
|
||||||
//https://getreuer.info/posts/keyboards/triggers/index.html#tap-vs.-long-press
|
//https://getreuer.info/posts/keyboards/triggers/index.html#tap-vs.-long-press
|
||||||
//https://www.jonashietala.se/series/t-34/ he focuses on a keymap for programming/VIM
|
//https://www.jonashietala.se/series/t-34/ he focuses on a keymap for programming/VIM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue