Maybe I needed a del one shot mods to make this work right

This commit is contained in:
Victor 2024-05-06 19:22:06 -05:00
parent 9ccc311d2a
commit a0e4ebaaea
Failed to generate hash of commit

View file

@ -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);