diff options
author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-21 16:40:38 +0700 |
---|---|---|
committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-02-21 16:40:38 +0700 |
commit | 3dab8a60fca182376d1df07d3f1e25882aa57be4 (patch) | |
tree | a61a02806a1cb45a284251a80ca1ddbb1566edba /keyboards/handwired | |
parent | 57623805e8d73aa14adae1e76d5338911dfc31b2 (diff) | |
download | qmk_firmware-3dab8a60fca182376d1df07d3f1e25882aa57be4.tar.gz |
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.c | 7 |
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); } |