aboutsummaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2013-07-16 19:52:14 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2013-07-17 16:00:26 -0400
commitf9b1d9b20f5d25b95f67a498e312f625d168fc51 (patch)
treeca881d5e65ad4e8e284bf9e71d2f6aaca185ff20 /qmp-commands.hx
parent8f91ad8a1b4702966d91ea58cd90bbde1faea1b3 (diff)
qmp: update send-key document
commit 9f328977 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>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx7
1 files changed, 5 insertions, 2 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index e075df423a..b8e77581ae 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -346,7 +346,8 @@ 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)
@@ -354,7 +355,9 @@ keys array:
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