Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple keyboard shortcuts not captured in fullscreen mode without mouse-capture enabled #3668

Closed
Lillecarl opened this issue Feb 23, 2022 · 9 comments
Labels
enhancement New feature or request interface Design, UX/UI issues
Milestone

Comments

@Lillecarl
Copy link

Certain keycombinations are not working, for example meta(command)+arrow keys. I noticed this because meta+arrow keys is the default (and sane) combination for quick-tiling windows within KDE.

How to reproduce

Start a VM, enter full-screen mode, press command+arrow keys

Expected functionality

Keys presses are passed into the VM

Current functionality

You hear an Apple "notification bong" that your operation is invalid.

There's a link below with quite a few default Apple keybinds which can't seem to be unbound by me as an end user, and the command+arrow keys supposedly moves the cursor within an input field, which there are none of in the UTM full screen window, see the following Apple support link: https://support.apple.com/en-us/HT201236

I'm quite certain this can be overridden as this was functioning under VirtualBox, though I wouldn't know where to begin.

OT: Great job building UTM, QEMU > VirtualBox any day! 😄

@conath
Copy link
Contributor

conath commented Feb 24, 2022

To pass these kinds of macOS system keyboard shortcuts to the VM, you first need to "capture" the input. Press control and option/alt together, or click the "capture cursor" button in the toolbar. This locks your mouse and keyboard input to the VM, until you press the same key combination to release the input again.
capture-cursor

Now all key combinations (other than ctrl-option/alt) are forwarded to the VM. Feel free to re-open if this doesn't work for you.

@conath conath closed this as completed Feb 24, 2022
@osy
Copy link
Contributor

osy commented Feb 24, 2022

I think we can improve UX by automatically capturing system keys in full screen.

@osy osy reopened this Feb 24, 2022
@osy osy added this to the v3.1 milestone Feb 24, 2022
@osy osy added enhancement New feature or request interface Design, UX/UI issues labels Feb 25, 2022
@osy osy removed this from the v3.1 milestone Feb 25, 2022
@Lillecarl
Copy link
Author

@osy That sounds like an UX improvement :)

@jjw24
Copy link

jjw24 commented Jun 7, 2023

Hey @osy, I see this removed from v3.1 milestone, is automatically capturing system keys in full screen still planned?

@osy osy added this to the v4.3 milestone Jun 7, 2023
@osy osy closed this as completed in e15b878 Jul 17, 2023
@jjw24
Copy link

jjw24 commented Aug 2, 2023

Upgraded to UTM v4.3.4, the automatically capturing system keys when entering full screen doesn't seem to be working.

MacOS: Ventura 13.1
M1 chip

When I click on 'Enter Full Screen' on the VM window, the 'Capture input devices' icon should be automatically set, this should be the expected behaviour right?

@osy
Copy link
Contributor

osy commented Aug 2, 2023

Yes, when you enter full screen the capture system key button should be selected and marked as active. Are you running a macOS VM?

@jjw24
Copy link

jjw24 commented Aug 3, 2023

Hi there, I am running a Windows 11 Pro VM.

@osy
Copy link
Contributor

osy commented Aug 3, 2023

This issue only applies to Apple VMs. In hindsight I should have also implemented it for QEMU VMs but it didn’t cross my mind. Feel free to open a new issue requesting it.

@jjw24
Copy link

jjw24 commented Aug 3, 2023

Will do, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request interface Design, UX/UI issues
Projects
None yet
Development

No branches or pull requests

4 participants