diff mbox

Extra scan codes for missing keys

Message ID 1275420581-15650-1-git-send-email-qemudevbmw@lsmod.de
State New
Headers show

Commit Message

Bernhard M. Wiedemann June 1, 2010, 7:29 p.m. UTC
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>
---
 monitor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Anthony Liguori June 1, 2010, 7:46 p.m. UTC | #1
On 06/01/2010 02:29 PM, Bernhard M. Wiedemann wrote:
> 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>
> ---
>   monitor.c |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/monitor.c b/monitor.c
> index 15b53b9..09ff8cf 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -1563,6 +1563,8 @@ static const KeyDef key_defs[] = {
>       { 0x17, "i" },
>       { 0x18, "o" },
>       { 0x19, "p" },
> +    { 0x1a, "sqr_brack_l" },
> +    { 0x1b, "sqr_brack_r" },
>    

I think it would be better to spell it out as: bracket_left and 
bracket_right

Regards,

Anthony Liguori

>
>       { 0x1c, "ret" },
>
> @@ -1575,7 +1577,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" },
>
diff mbox

Patch

diff --git a/monitor.c b/monitor.c
index 15b53b9..09ff8cf 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1563,6 +1563,8 @@  static const KeyDef key_defs[] = {
     { 0x17, "i" },
     { 0x18, "o" },
     { 0x19, "p" },
+    { 0x1a, "sqr_brack_l" },
+    { 0x1b, "sqr_brack_r" },
 
     { 0x1c, "ret" },
 
@@ -1575,7 +1577,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" },