Host Window Manager Captures Keyboard Shortcuts - Super, Alt+Tab, Alt+F4, etc Does Not Work In Guest

Discussions related to using VirtualBox on Linux hosts.

Host Window Manager Captures Keyboard Shortcuts - Super, Alt+Tab, Alt+F4, etc Does Not Work In Guest

Postby twicked » 18. May 2017, 06:42

HOST OS:
Fedora 25 (4.10.14.200)

GUEST OS:
Ubuntu 17
Windows 10 (Creators)

VirtualBox:
Version 5.1.22
Extension Pack 5.1.22
Guest-Additions Installed: Yes on both guest OSes

Issue:
None of the guest OSes that I've used so far (Ubuntu, Windows 10, also WIN XP but very briefly) are able to make use of any of the keyboard hotkeys that my host OS has set. Using the super key does not bring up the start menu in any OS aside from the host OS (Fedora 25), alt+tab, alt+f4, super+d, super+e do not function in any OS but the host. Replacing these keys with the HOST key (right alt on my setup) does not yield different results.

Notes:
It is noteworthy that the other OSes do not respond in suppliment, either. They do not get a chance to catch the command.
My other machine, Windows 10 host OS with CentOS, MS Win Server 2012R2, and Fedora 25 works flawlessly. When in a guest OS, keyboard and mouse is properly captured and all shortcuts work in guest OS. Use HOST key to return keyboard and mouse capture to host OS.

Temporary Solution:
This is somewhat resolvable by using dconf-editor on the host OS (fedora) to change or remove the affected hotkeys (all of them). Doing this restores the full functionality for each modified keyboard shortcut. This 'solution', however, is entirely cumbersome and frustrating and would need to be repealed and restored before and after guest OS uses.

Reproduceability:
Due to a change in partition planning, I wound up reinstalling the HOST OS on this machine, as well as the extension pack, guest OSes and the vbox-additions. The issue is still present on this machine with a fresh image and latest updates.
twicked
 
Posts: 2
Joined: 18. May 2017, 06:20

Re: Host Window Manager Captures Keyboard Shortcuts - Super, Alt+Tab, Alt+F4, etc Does Not Work In G

Postby socratis » 18. May 2017, 07:46

This is due to Qt, the multi-platform, graphical front end library used for the GUI. It has some keys reserved. And it's hardcoded unfortunately. On my OSX host, I can't use several important shortcuts, like Cmd+Q (quit) and Cmd+H (hide). Or if I set Cmd+Opt+, for system preferences on host and guest, the host has priority. C'est la vie...

And if you think about it, you want the Quit shortcut (or some other special shortcuts) to be directed first to the host, in case the guest gets stuck and all your shortcuts are getting "lost". Then you lose both guest and host.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
 
Posts: 27252
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Host Window Manager Captures Keyboard Shortcuts - Super, Alt+Tab, Alt+F4, etc Does Not Work In G

Postby doynton » 13. Jun 2017, 13:23

This sounds like this bug https://bugzilla.redhat.com/show_bug.cgi?id=1285770 in weyland.

I'm running Arch host with Gnome DM (like Fedora afaik) and Windows key will not work in any VM - it is routed to host.

If I use xorg not weyland virtualbox works fine.
doynton
 
Posts: 15
Joined: 8. Apr 2013, 12:12

Re: Host Window Manager Captures Keyboard Shortcuts - Super, Alt+Tab, Alt+F4, etc Does Not Work In G

Postby twicked » 16. Jun 2017, 22:20

This was the solution. After switching from Weyland back to X-Org the keyboard integration works wonderfully. Kudos, sir! I am grateful for this piece of advice!
Last edited by socratis on 17. Jun 2017, 11:18, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
twicked
 
Posts: 2
Joined: 18. May 2017, 06:20


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot] and 21 guests