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

example_keyboards
Priyadi Iman Nurcahyo 8 years ago
parent 57623805e8
commit 3dab8a60fc

@ -1039,9 +1039,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#endif
// 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:
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);
unregister_code(keycode);
}

Loading…
Cancel
Save