summaryrefslogtreecommitdiff
path: root/keyboards/handwired
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-21 16:40:38 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-02-21 16:40:38 +0700
commit3dab8a60fca182376d1df07d3f1e25882aa57be4 (patch)
treea61a02806a1cb45a284251a80ca1ddbb1566edba /keyboards/handwired
parent57623805e8d73aa14adae1e76d5338911dfc31b2 (diff)
added pause, prtsc & ins to list of keys to be processed on release
Diffstat (limited to 'keyboards/handwired')
-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 aed5a81eef..cf7c67339d 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);
}