aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2016-08-11 09:21:00 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2016-09-15 15:32:22 +0300
commit344aa283b89bec2af976107e85c11963a1ad93d4 (patch)
tree7bf6bbfce4091b0db40f189ad8c85d7da116d864 /ui
parent347519eb9d68303a6c23a7663c0fa6c20a225191 (diff)
downloadqemu-344aa283b89bec2af976107e85c11963a1ad93d4.zip
qemu-344aa283b89bec2af976107e85c11963a1ad93d4.tar.gz
qemu-344aa283b89bec2af976107e85c11963a1ad93d4.tar.bz2
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. Buglink: https://bugs.launchpad.net/qemu/+bug/1611979 Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c
index c24bfe4..3940762 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -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)