mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-05 07:04:17 -04:00
Maybe I needed a del one shot mods to make this work right
This commit is contained in:
parent
9ccc311d2a
commit
a0e4ebaaea
1 changed files with 2 additions and 1 deletions
|
@ -49,8 +49,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
uint8_t current_mod = get_mods();
|
uint8_t current_mod = get_mods();
|
||||||
uint8_t current_osm = get_oneshot_mods();
|
uint8_t current_osm = get_oneshot_mods();
|
||||||
|
|
||||||
if ((current_mod | current_osm) & MOD_MASK_SHIFT ) {
|
if ((current_mod | current_osm) & MOD_MASK_SHIFT) {
|
||||||
del_mods(MOD_MASK_SHIFT);
|
del_mods(MOD_MASK_SHIFT);
|
||||||
|
det_oneshot_mods(MOD_MASK_SHIFT);
|
||||||
register_code(KC_DEL);
|
register_code(KC_DEL);
|
||||||
delkey_registered = true;
|
delkey_registered = true;
|
||||||
set_mods(current_mod);
|
set_mods(current_mod);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue