utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.42k stars 1.32k forks source link

Provide a "host key" like VirtualBox #4306

Open phirestalker opened 2 years ago

phirestalker commented 2 years ago

In VirtualBox, you can set a key (or combination of keys?) that is captured by VirtualBox and not forwarded to the VM. This key can then be used in combination with other keys to provide shortcuts to the functionality provided by the hypervisor.

I would like to have this feature in UTM. I am not sure if this needs to be done by QEMU team or not, so I am starting here. I have a password manager that has a global shortcut to fill in a username and password in the foreground window. This does not work when I am in a VM, because all keys (or most) are captured by the VM. If there were a host key and some configurable functions, I could pass the remaining keys in the combination back to the host OS.

conath commented 2 years ago

I believe UTM's host key combo is option-command (aka alt-command; ⌥ ⌘). At least that is what toggles "capture mouse". Does that work for you? Or are you requesting another kind of host key? Please elaborate.

phirestalker commented 2 years ago

I would like a key (right-alt only maybe) to disable VM key capture for the keys pressed with it, so that the host could perform the action it is supposed to. Maybe pressing it could temporarily suspend keyboard capture of special keys?

My password manager on the host has a global shortcut to type in a password. I am unable to activate it while in a VM because all keys are captured. I would be happy with any way that allowed me to use global hotkeys on the host temporarily while in the VM.