Open ali1234 opened 1 month ago
According to https://en.wikibooks.org/wiki/QEMU/Monitor#sendkey_keys these are the correct key names so I don't know why they don't work. Performing these steps manually through the viewer does work (F10 seems to be grabbed by the viewer, but ctrl-x works instead).
Have you tried qt_send_key_combo
? Which does no translation/mapping? It's a bit horrid, but there's two functions in Quicktest for this reason. The qt_send_key_combo
lets you send the raw ret
, esc
ctrl-alt-f1
combinations that Qemu recognises. Whereas the qt_send_key
function does the whole mapping of #
to shift-f3
or whatever it is for your keyboard layout.
qt_send_key_combo
works.
In order to avoid confusion, I would make only qt_send_string
handle remapping, then make qt_send_key
do what qt_send_key_combo
does, and remove the latter. Finally qt_send_key
should display an error for invalid keys instead of silently doing nothing.
Test case (put this in one of the ubuntu 24.04 tests):
What should happen:
What actually happens:
The "console=..." should be at the end of the line beginning with "linux".