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 <[email protected]>
---
 ui/input-linux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ui/input-linux.c b/ui/input-linux.c
index 74bc8511428a..f4eee1ffd7ec 100644
--- a/ui/input-linux.c
+++ b/ui/input-linux.c
@@ -166,8 +166,7 @@ static void input_linux_handle_keyboard(InputLinux *il,
 
         /* send event to guest when grab is active */
         if (il->grab_active && !input_linux_should_skip(il, event)) {
-            int qcode = qemu_input_linux_to_qcode(event->code);
-            qemu_input_event_send_key_qcode(NULL, qcode, event->value);
+            qemu_input_event_send_key_linux(NULL, event->code, event->value);
         }
 
         /* hotkey -> record switch request ... */

-- 
2.54.0


Reply via email to