mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
added pause, prtsc & ins to list of keys to be processed on release
This commit is contained in:
parent
57623805e8
commit
3dab8a60fc
1 changed files with 5 additions and 2 deletions
|
@ -1039,9 +1039,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// only process Fnumber on key release, and only when layer switcher is still pressed.
|
// only process Fnumber on key release, and only when layer switcher is still pressed.
|
||||||
// this is to avoid accidental presses
|
// this is to avoid accidental presses on potentially destructive keys
|
||||||
case KC_F1 ... KC_F12:
|
case KC_F1 ... KC_F12:
|
||||||
if (!record->event.pressed && layer == _FUN) {
|
case KC_PAUS:
|
||||||
|
case KC_PSCR:
|
||||||
|
case KC_INS:
|
||||||
|
if (!record->event.pressed && layer == _FUN) { // key released and still in FUN layer
|
||||||
register_code(keycode);
|
register_code(keycode);
|
||||||
unregister_code(keycode);
|
unregister_code(keycode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue