aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/hhkb/ansi/keymaps/shela
diff options
context:
space:
mode:
authorGravatar shela <shelaf@users.noreply.github.com>2020-08-15 21:54:52 +0900
committerGravatar GitHub <noreply@github.com>2020-08-15 13:54:52 +0100
commitf64245b10b6e388a7ea7f6aa2ebb37c93409e691 (patch)
tree126a56f3f692a90073f0b8ba7658e1b6c8a02f52 /keyboards/hhkb/ansi/keymaps/shela
parentacc4bedddcb360d2d221d7ca7882baec446457f2 (diff)
downloadqmk_firmware-f64245b10b6e388a7ea7f6aa2ebb37c93409e691.tar.gz
[keymap] Fixed an issue that long pressed alt key does not work on PSN_FN layer. (#10039)
Diffstat (limited to 'keyboards/hhkb/ansi/keymaps/shela')
-rw-r--r--keyboards/hhkb/ansi/keymaps/shela/keymap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/hhkb/ansi/keymaps/shela/keymap.c b/keyboards/hhkb/ansi/keymaps/shela/keymap.c
index f63b99a4f..9fbb46938 100644
--- a/keyboards/hhkb/ansi/keymaps/shela/keymap.c
+++ b/keyboards/hhkb/ansi/keymaps/shela/keymap.c
@@ -406,6 +406,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
case PSE_FN:
+ if (record->event.pressed) {
+ if (l_pressed && !l_long_pressed) {
+ register_code(l_inner);
+ l_long_pressed = true;
+ }
+ if (r_pressed && !r_long_pressed) {
+ register_code(r_inner);
+ r_long_pressed = true;
+ }
+ }
action_pseudo_process(record, base_layer, keymap_jis2us);
return false;
default: