aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <qemudevbmw@lsmod.de>2010-06-02 05:32:30 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-22 15:15:30 -0500
commit49b586a922c1818cbd9f576600f72bff182bc257 (patch)
tree95fd4dcd7a47d66dfb3a0462c847dad29bb8bd97 /monitor.c
parentf74550fd53598ac6529dbcfc3c06e98d2d7fbe51 (diff)
Extra scan codes for missing keys
The code comes from http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02788.html Without this patch it is not possible to send at least 10 special characters (\|'"`~:;[]{}) via the monitor sendkey command. Signed-off-by: Bernhard M. Wiedemann <qemudevbmw@lsmod.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 05a7ed1c42..170b26971f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1447,7 +1447,8 @@ static const KeyDef key_defs[] = {
{ 0x17, "i" },
{ 0x18, "o" },
{ 0x19, "p" },
-
+ { 0x1a, "bracket_left" },
+ { 0x1b, "bracket_right" },
{ 0x1c, "ret" },
{ 0x1e, "a" },
@@ -1459,7 +1460,11 @@ static const KeyDef key_defs[] = {
{ 0x24, "j" },
{ 0x25, "k" },
{ 0x26, "l" },
+ { 0x27, "semicolon" },
+ { 0x28, "apostrophe" },
+ { 0x29, "grave_accent" },
+ { 0x2b, "backslash" },
{ 0x2c, "z" },
{ 0x2d, "x" },
{ 0x2e, "c" },