utmapp / utmapp/UTM

pc keyboard `insert`, `ctrl`-`arrow` not passed to guest

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

Description

**Describe the issue**
Events for the `insert` key on a standard pc keyboard are not seen by the vm, unless I enable usb passthrough for the keyboard - but if I do that, of course the keyboard can't work in osx apps. `ctrl`-`arrow` (either ctrl, any arrow) also don't work, with only the control event being passed through and the arrow being dropped. However, `ctrl`-`shift`-`arrow` _does_ work.

To verify whether the events are seen in the guest or not, I am using `xev -event keyboard`. Other keys cause press and release events, but the aforementioned fail.

On the host, if I open karabiner events viewer, it does show events - so it's not a case of a broken keyboard or a lack of support in osx.

I could translate `ctrl-insert` / `shift-insert` to `ctrl-x` / `ctrl-c` using karabiner but it seems like utm ought to be able to see these events. Even if I do, that doesn't solve the problem of plain `insert` not being sent - or the problem of some apps handling the insert combinations differently than they do ctrl-x/ctrl-c.

I have tried with karabiner disabled just in case it was the problem, but there was no change.

screenshot showing insert and ctrl-arrow:
![Image](https://github.com/user-attachments/assets/a7f6e00b-2317-4715-9b6d-931ee2fe4eca)

While I originally saw this in a NixOS VM, I also had a Debian 12 VM from the UTM Debian 12 image. When I tried there, I was able to reproduce the issue. Both are using KDE as the UI, though I doubt that would impact keyboard events.

**Configuration**
* UTM Version: `4.6.4`
* macOS Version: `Sequoia 15.3.2`
* Mac Chip (Intel, M1, ...): `M4 Max`

**Crash log**
N/A

**Debug log**
[debug-debian12-keys.log.zip](https://github.com/user-attachments/files/20068761/debug-debian12-keys.log.zip)

**Upload VM**
N/A

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.