Force certain keyboard shortcuts to be processed in GNOME and not to be passed to VM

I’m using Gnome Boxes for running VMs and use multimedia keys on my keyboard to control music playback. But they stopped working once I am inside VM. I want to make some keyboard shortcuts to be processed by Gnome as if I press them on Desktop.

Is there a solution or a workaround? What part of the Fedora system is responsible for such behavior?

I am running Fedora VMs from Mac host OSes, so I don’t use GNOME Boxes in particular. But usually the general rule is to ungrab the keyboard from the guest OS.

This can be done in GNOME Boxes by pressing Ctrl+Alt (left). Once this keyboard shortcut is pressed, it should work to use the multimedia keys right afterwords. I haven’t tested it though.

1 Like

Thank you!

This is really a simple solution. It is not very convenient, because there is a need to press Ctrl+Alt two times (the first to release a keyboard and the second to lock again afterwards), but it is much better than using mouse to switch windows.

1 Like