Skip to content

Commit

Permalink
[keymap] Fixed an issue that long pressed alt key does not work on PS…
Browse files Browse the repository at this point in the history
…N_FN layer. (qmk#10039)
  • Loading branch information
shelaf authored Aug 15, 2020
1 parent acc4bed commit f64245b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/hhkb/ansi/keymaps/shela/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f64245b

Please sign in to comment.