diff options
author | Cal Peake <cp@absolutedigital.net> | 2022-08-11 18:01:38 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-09-23 13:42:09 +0200 |
commit | df6322a8973b5e69bdc8931ff79d3bfe3901cab5 (patch) | |
tree | 4a39743d10ec29d9cb8787a7f8c804170d48af2f /ui | |
parent | 6160d8ff81fb9fba70f5dad88d43ffd0fa44984c (diff) | |
download | qemu-df6322a8973b5e69bdc8931ff79d3bfe3901cab5.zip qemu-df6322a8973b5e69bdc8931ff79d3bfe3901cab5.tar.gz qemu-df6322a8973b5e69bdc8931ff79d3bfe3901cab5.tar.bz2 |
ui/console: Get tab completion working again in the SDL monitor vc
Define a QEMU special key constant for the tab key and add an entry for
it in the qcode_to_keysym table. This allows tab completion to work again
in the SDL monitor virtual console, which has been broken ever since the
migration from SDL1 to SDL2.
Signed-off-by: Cal Peake <cp@absolutedigital.net>
Message-Id: <7054816e-99c-7e2-6737-7cf98cc56e2@absolutedigital.net>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/console.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c index 765892f..243f2f6 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1368,6 +1368,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_TAB] = QEMU_KEY_TAB, [Q_KEY_CODE_BACKSPACE] = QEMU_KEY_BACKSPACE, }; |