forked from mirrors/qmk_firmware
[keymap] Fixed an issue that long pressed alt key does not work on PSN_FN layer. (#10039)
This commit is contained in:
parent
acc4bedddc
commit
f64245b10b
1 changed files with 10 additions and 0 deletions
|
@ -406,6 +406,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
case PSE_FN:
|
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);
|
action_pseudo_process(record, base_layer, keymap_jis2us);
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue