Skip to content

Commit

Permalink
qmp-commands: move 'send-key' doc to schema
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
  • Loading branch information
elmarco authored and Markus Armbruster committed Jan 16, 2017
1 parent d71ca35 commit f45fd52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
22 changes: 0 additions & 22 deletions docs/qmp-commands.txt
Expand Up @@ -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
---

Expand Down
8 changes: 8 additions & 0 deletions qapi-schema.json
Expand Up @@ -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' } }
Expand Down

0 comments on commit f45fd52

Please sign in to comment.