utmapp / utmapp/UTM

Modifier keys don't work in MacOS guest when the host is accessed via remote desktop

Open
#5,802 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
35.5k
Forks
1.8k
Avg merge
5d 5h
Merged PRs (30d)
7

Description

### Discussed in https://github.com/utmapp/UTM/discussions/5020

Originally posted by **acgourley** February 14, 2023
OSX Laptop ---remote desktop---> OSX Host ---UTM Window---> OSX Guest

If am in the OSX laptop, I cannot send modifier keys like Shift to the OSX guest. I figure this isn't a bug with UTM so much as my remote desktop software, but I'm wondering if anyone has ideas on a fix.

---
I have the same problem as in the discussion above. I use Chrome Remote Desktop (CRDP).

None of the modifier keys (shift, control, alt, meta) work. This can be easily verified using the [Keyboard Viewer](https://support.apple.com/en-gb/guide/mac-help/mchlp1015/14.0/mac/14.0):

In CRDP, you can see the host OS is aware of the AltGr key, but the guest (which has focus) is not:

![CRDP](https://github.com/utmapp/UTM/assets/1662412/27c9c33b-52ab-4fef-9ab8-6f61ba464e14)

In VNC, the client sees my shift key:

![VNC](https://github.com/utmapp/UTM/assets/1662412/9980a01d-90f7-4588-96ac-9aa3a78a8c5c)

CRDP uses the accessibility service to inject the keys, and VNC must be doing it differently. In fact, the host Keyboard Viewer _cannot_ inject modifier keys into UTM either.

However, CRDP gives much lower lag over the Internet, so I would really like it to work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.