fix(input): refine legacy key mapping and ensure codepoints on release

This commit is contained in:
boreddevnl
2026-05-09 22:30:53 +02:00
parent 963e68162b
commit 3bb90a8b7f
3 changed files with 26 additions and 23 deletions

View File

@@ -188,12 +188,13 @@ bool keyboard_handle_set1_scancode(uint8_t scancode, keyboard_event_t *ev) {
ev->pressed = pressed;
ev->mods = keyboard_get_modifiers();
keymap_result_t r = keymap_translate_keycode(keycode, ev->mods);
ev->codepoint = r.codepoint;
if (!pressed) {
return true;
}
keymap_result_t r = keymap_translate_keycode(keycode, ev->mods);
if (r.is_dead) {
g_kb.dead_key = r.codepoint;
return true;