1
0
Fork 0

added pause, prtsc & ins to list of keys to be processed on release

This commit is contained in:
Priyadi Iman Nurcahyo 2017-02-21 16:40:38 +07:00
parent 57623805e8
commit 3dab8a60fc
1 changed files with 5 additions and 2 deletions

View File

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