qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/4] input/vnc: use kbd delays in press_key


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 4/4] input/vnc: use kbd delays in press_key
Date: Mon, 2 Jun 2014 13:28:38 +0200

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 ui/vnc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/vnc.c b/ui/vnc.c
index 2d7def9..5521abb 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -1552,7 +1552,9 @@ static void press_key(VncState *vs, int keysym)
 {
     int keycode = keysym2scancode(vs->vd->kbd_layout, keysym) & 
SCANCODE_KEYMASK;
     qemu_input_event_send_key_number(vs->vd->dcl.con, keycode, true);
+    qemu_input_event_send_key_delay(10);
     qemu_input_event_send_key_number(vs->vd->dcl.con, keycode, false);
+    qemu_input_event_send_key_delay(10);
 }
 
 static int current_led_state(VncState *vs)
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]