diff mbox

[v2,2/6] fix doc of using raw values with sendkey

Message ID 1338591268-23962-3-git-send-email-akong@redhat.com
State New
Headers show

Commit Message

Amos Kong June 1, 2012, 10:54 p.m. UTC
(qemu) sendkey a
(qemu) sendkey 0x1e
(qemu) sendkey #0x1e
 unknown key: '#0x1e'

The last command doesn't work, '#' is not request before raw values.

Signed-off-by: Amos Kong <akong@redhat.com>
---
 hmp-commands.hx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Luiz Capitulino June 6, 2012, 6:16 p.m. UTC | #1
On Sat,  2 Jun 2012 06:54:24 +0800
Amos Kong <akong@redhat.com> wrote:

> (qemu) sendkey a
> (qemu) sendkey 0x1e
> (qemu) sendkey #0x1e
>  unknown key: '#0x1e'
> 
> The last command doesn't work, '#' is not request before raw values.
> 
> Signed-off-by: Amos Kong <akong@redhat.com>
> ---
>  hmp-commands.hx |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hmp-commands.hx b/hmp-commands.hx
> index 18cb415..af18156 100644
> --- a/hmp-commands.hx
> +++ b/hmp-commands.hx
> @@ -513,8 +513,8 @@ STEXI
>  @findex sendkey
>  
>  Send @var{keys} to the emulator. @var{keys} could be the name of the

I think we should do:

 s/emulator/guest

Also applies to the schema doc.

> -key or @code{#} followed by the raw value in either decimal or hexadecimal
> -format. Use @code{-} to press several keys simultaneously. Example:
> +key or the raw value in either decimal or hexadecimal format. Use
> +@code{-} to press several keys simultaneously. Example:
>  @example
>  sendkey ctrl-alt-f1
>  @end example
diff mbox

Patch

diff --git a/hmp-commands.hx b/hmp-commands.hx
index 18cb415..af18156 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -513,8 +513,8 @@  STEXI
 @findex sendkey
 
 Send @var{keys} to the emulator. @var{keys} could be the name of the
-key or @code{#} followed by the raw value in either decimal or hexadecimal
-format. Use @code{-} to press several keys simultaneously. Example:
+key or the raw value in either decimal or hexadecimal format. Use
+@code{-} to press several keys simultaneously. Example:
 @example
 sendkey ctrl-alt-f1
 @end example