qemu-docs: Update options for graphical frontends

The command line options `-ctrl-grab` and `-alt-grab` have been removed
in QEMU 7.1. Instead, use the `-display sdl,grab-mod=<modifiers>` option
to specify the grab modifiers.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2103
Signed-off-by: Yihuan Pan <xun794@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Yihuan Pan 2024-01-22 12:22:06 +08:00 committed by Michael Tokarev
parent dee70f51bf
commit db101376af
1 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,9 @@
During the graphical emulation, you can use special key combinations to During the graphical emulation, you can use special key combinations from
change modes. The default key mappings are shown below, but if you use the following table to change modes. By default the modifier is Ctrl-Alt
``-alt-grab`` then the modifier is Ctrl-Alt-Shift (instead of Ctrl-Alt) (used in the table below) which can be changed with ``-display`` suboption
and if you use ``-ctrl-grab`` then the modifier is the right Ctrl key ``mod=`` where appropriate. For example, ``-display sdl,
(instead of Ctrl-Alt): grab-mod=lshift-lctrl-lalt`` changes the modifier key to Ctrl-Alt-Shift,
while ``-display sdl,grab-mod=rctrl`` changes it to the right Ctrl key.
Ctrl-Alt-f Ctrl-Alt-f
Toggle full screen Toggle full screen