From: Amos Kong Date: Tue, 16 Jul 2013 11:52:14 +0000 (+0800) Subject: qmp: update send-key document X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~204^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f9b1d9b20f5d25b95f67a498e312f625d168fc51;p=qemu-upstream-4.4-testing.git 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 Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- diff --git a/qmp-commands.hx b/qmp-commands.hx index e075df423..b8e77581a 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