Skip to content

Commit

Permalink
qmp: update send-key document
Browse files Browse the repository at this point in the history
commit 9f32897 changes qmp_send_key() to accept key codes in hex,
but the document wasn't updated. The items of keys list is union
now, not enum.

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
  • Loading branch information
amoskong authored and Luiz Capitulino committed Jul 17, 2013
1 parent 8f91ad8 commit f9b1d9b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qmp-commands.hx
Expand Up @@ -346,15 +346,18 @@ Send keys to VM.
Arguments:

keys array:
- "key": key sequence (a json-array of key enum values)
- "key": key sequence (a json-array of key union values,
union can be number or qcode enum)

- hold-time: time to delay key up events, milliseconds. Defaults to 100
(json-int, optional)

Example:

-> { "execute": "send-key",
"arguments": { 'keys': [ 'ctrl', 'alt', 'delete' ] } }
"arguments": { "keys": [ { "type": "qcode", "data": "ctrl" },
{ "type": "qcode", "data": "alt" },
{ "type": "qcode", "data": "delete" } ] } }
<- { "return": {} }

EQMP
Expand Down

0 comments on commit f9b1d9b

Please sign in to comment.