summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index aed5a81ee..cf7c67339 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -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);
}