Skip to contentSkip to conversation

input: activate legacy kbd

PATCH New Gerd Hoffmann 1 participant 1 message Mar 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: activate legacy kbd

Restores traditional behavior: Keyboard input will be routed to the most recently added keyboard. Without this all kbd input goes to the ps/2 keyboard, even if you add a usb keyboard to your guest.

---
 ui/input-legacy.c | 1 +
 1 file changed, 1 insertion(+)
ui/input-legacy.c +1 -0
index 7dc486b..1aa2605 100644
@@ -333,6 +333,7 @@ QEMUPutKbdEntry *qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque)
     entry->opaque = opaque;
     entry->s = qemu_input_handler_register((DeviceState *)entry,
                                            &legacy_kbd_handler);
+    qemu_input_handler_activate(entry->s);
     return entry;
 }
 
Signature · 1 line
1.8.3.1