ui/input-linux: Use Linux key codes
QemuInputEvent now stores Linux key codes for key events. Use those codes directly instead of translating between internal key code representations. Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260520-input-v3-22-7c9e4c7abe34@rsg.ci.i.u-tokyo.ac.jp>
Akihiko Odaki committed
May 20, 2026 at 15:48 UTC
065757f7c8dcb4b8b059ca17d2b634e0351dcbe2
1 file changed
+1
-2
ui/input-linux.c
+1
-2
@@ -166,8 +166,7 @@ static void input_linux_handle_keyboard(InputLinux *il,
166
167
/* send event to guest when grab is active */
168
if (il->grab_active && !input_linux_should_skip(il, event)) {
169
- int qcode = qemu_input_linux_to_qcode(event->code);
170
- qemu_input_event_send_key_qcode(NULL, qcode, event->value);
169
+ qemu_input_event_send_key_linux(NULL, event->code, event->value);
170
}
171
172
/* hotkey -> record switch request ... */