Skip to contentSkip to conversation

ui/console: Fix non-working backspace key in monitor of gtk UI

PATCH Applied Thomas Huth 3 participants 5 messages Aug 11, 2016 – Sep 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui/console: Fix non-working backspace key in monitor of gtk UI

In the QEMU monitor pane of the gtk user interface, the backspace key is not working at all. This happens because of a missing mapping of the key in the qcode_to_keysym[] table. Thus let's add an entry there to get the backspace key working again.

---
 ui/console.c | 1 +
 1 file changed, 1 insertion(+)
ui/console.c +1 -0
index c24bfe4..3940762 100644
@@ -1142,6 +1142,7 @@ static const int qcode_to_keysym[Q_KEY_CODE__MAX] = {
     [Q_KEY_CODE_PGUP]   = QEMU_KEY_PAGEUP,
     [Q_KEY_CODE_PGDN]   = QEMU_KEY_PAGEDOWN,
     [Q_KEY_CODE_DELETE] = QEMU_KEY_DELETE,
+    [Q_KEY_CODE_BACKSPACE] = QEMU_KEY_BACKSPACE,
 };
 
 bool kbd_put_qcode_console(QemuConsole *s, int qcode)
Signature · 1 line
1.8.3.1
#2 lore raw
Quoted 4 lines · Gerd Hoffmann
Quoted 1 line · Thomas Huth

+ [Q_KEY_CODE_BACKSPACE] = QEMU_KEY_BACKSPACE,

Gerd,

thanks for your R-b! Could you take this through your ui tree? Or should it rather go through -trivial instead?

Thanks,
Thomas

#3 lore raw
Quoted 10 lines · Thomas Huth
Quoted 4 lines · Gerd Hoffmann
Quoted 1 line · Thomas Huth

+ [Q_KEY_CODE_BACKSPACE] = QEMU_KEY_BACKSPACE,

Gerd,

thanks for your R-b! Could you take this through your ui tree? Or should it rather go through -trivial instead?

I was expecting it going through trivial as the qemu-trivial list was in cc and the patch actually is trivial. If that doesn't work out I can pick it up for the next ui pull request.

cheers,
Gerd