ui/cocoa: add option to disable left-command forwarding to guest
commit48941a52c2c3350b0c3dcdc1aba702def91d19a8
authorCarwyn Ellis <carwynellis@gmail.com>
Sun, 2 Jan 2022 17:41:52 +0000 (2 17:41 +0000)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 15 Mar 2022 12:36:33 +0000 (15 13:36 +0100)
treeaa87db945017365980aaae0eb2b1cab8c5c18129
parent9459262dc4218110f4d3c5dce0b4fe43e1faffdb
ui/cocoa: add option to disable left-command forwarding to guest

When switching between guest and host on a Mac using command-tab the
command key is sent to the guest which can trigger functionality in the
guest OS. Specifying left-command-key=off disables forwarding this key
to the guest. Defaults to enabled.

Also updated the cocoa display documentation to reference the new
left-command-key option along with the existing show-cursor option.

Signed-off-by: Carwyn Ellis <carwynellis@gmail.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
[PMD: Set QAPI structure @since tag to 7.0]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
qapi/ui.json
qemu-options.hx
ui/cocoa.m