From f45fd52cefaf84fab166dd9d25d12b87813f4882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 13:41:20 +0200 Subject: [PATCH] qmp-commands: move 'send-key' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 22 ---------------------- qapi-schema.json | 8 ++++++++ 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 1fe4f40cff..38ccf8405b 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -111,28 +111,6 @@ Notes: (2) It's possible to list device properties by running QEMU with the "-device DEVICE,\?" command-line argument, where DEVICE is the device's name -send-key ----------- - -Send keys to VM. - -Arguments: - -keys array: - - "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": [ { "type": "qcode", "data": "ctrl" }, - { "type": "qcode", "data": "alt" }, - { "type": "qcode", "data": "delete" } ] } } -<- { "return": {} } - cpu --- diff --git a/qapi-schema.json b/qapi-schema.json index cf3b9411ac..a1030e2d31 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4586,6 +4586,14 @@ # # Since: 1.3.0 # +# Example: +# +# -> { "execute": "send-key", +# "arguments": { "keys": [ { "type": "qcode", "data": "ctrl" }, +# { "type": "qcode", "data": "alt" }, +# { "type": "qcode", "data": "delete" } ] } } +# <- { "return": {} } +# ## { 'command': 'send-key', 'data': { 'keys': ['KeyValue'], '*hold-time': 'int' } }