VirtualBox

Opened 12 years ago

Closed 7 years ago

Last modified 4 years ago

#10842 closed defect (fixed)

Grab of key 'Super' doesn't work good -> should be fixed in major releases after 4 July 2016

Reported by: Konstigt Owned by:
Component: GUI Version: VirtualBox 4.1.18
Keywords: Cc:
Guest type: Windows Host type: Linux

Description

Using Ubuntu 12.04 w/ Unity as host and Windows XP as guest, I can press the Super-key (Windows-key) to get the start menu in XP.. but it also opens up the Unity menu.

I also use Remmina RDP client. When I do the same there the key is completely mapped to the system I connect to and is not executed at my "host system".

Change History (15)

comment:1 by Michael Thayer, 12 years ago

Do you use keyboard grabbing in Remmina to intercept that key? We are not doing that at the moment as it causes a lot of problems with GNOME applications which expect to be able to grab the keyboard at any time (and can't if we have it).

comment:2 by agerber85, 12 years ago

Are you saying that the Auto Capture Keyboard feature is designed not to grab the super key? If that's true, the feature's screentip should probably be corrected. It currently reads:

"...When the keyboard is captured, all keystrokes (including system ones like Alt-Tab) are directed to the VM."

That description seems to indicate that the Super key should be captured, as well.

I'm not sure what GNOME applications would have "lots of problems" if they couldn't grab the super key on the host system while the user is operating in the guest system. I do, however, know of one user who has had lots of problems because he thought he was installing something on the guest system when he was actually installing it on the host system.

comment:3 by Michael Thayer, 12 years ago

Sorry, I didn't see your update to this ticket. Regarding GNOME applications which fail, as far as I recall:

  • Metacity tries to capture the keyboard whenever a window is dragged to that it sees the escape key being pressed. If another application has captured the keyboard it refuses to let you drag windows.
  • GNOME applications try to capture the keyboard whenever you open a menu in order to see keyboard short-cuts. If they can't capture the keyboard then shortcuts fail to work.
  • GNOME screen-saver captures the keyboard when it kicks in for security reasons. If another application has it captured it either refuses to start, or worse it starts but doesn't get keyboard input so that you can't enter your password to stop it again.

So on X11 hosts we do a limited sort of keyboard capturing (we capture all keys which are not already captured by another application, but we don't prevent applications from doing a full keyboard grab) which worked well until Ubuntu/Unity started doing permanent grabs of the Super key. Unfortunately X11 only provides those two grabbing modes, and since Unity gets the key first there is not much we can do about it.

A nice fix for this issue would be to let the user do a full keyboard grab which is automatically released after they have entered a key sequence or after a time-out. Sadly this is too much work to just implement it quickly "in a break", and not high enough priority for us to find time for it since we have plenty of other more urgent tasks to be completed, so for now it is on the rainy day task list. If it would help (but would it?) we could see if we could re-word the caption.

comment:4 by e_orz, 12 years ago

I have the same problem (using Win7 as guest).

The problem is even worse when HUD is on. Each time that I press the Alt key the guest OS loses the focus on the keyboard (and when in full screen, it took me some time to understad what happened because I didn't see the HUD bar). The work in the guest OS became practically impossible. I had to turn off HUD.

I really hope it will be fixed soon (considering the time constrains).

thanks

comment:5 by Michael Thayer, 10 years ago

Marked ticket #12660 a duplicate of this one. Note again that Ubuntu really shouldn't be capturing the Super and Alt keys, as that is asking for this sort of thing.

comment:6 by kilaka, 9 years ago

I think that you have your capturing disabled. Right ctrl (default) to enable it.

comment:7 by bslezak, 8 years ago

If I may, I understand there are technical challenges to capturing the Super key directly but it seems a workaround would be worth the effort. When running an OS such as Windows 8.1 as a guest, the Super key is so vital to moving around the menu systems it does hinder the experience. Is it not possible to at least map a host key combination that simulates the super key in the guest OS? Thanks for consideration.

comment:8 by zulli, 8 years ago

Just to put some more weight on that: Having Ubuntu 16.64/64 host and Windows 10 guest, I'm a heavy keyboard-user often using the 'windows key' - and this is very unusable with Virtualbox at the moment. (with VMWare it works quite well, so technically, it seems to be solvable ;-)).

comment:9 by Michael Thayer, 8 years ago

Component: otherGUI
Summary: Grab of key 'Super' doesn't work goodGrab of key 'Super' doesn't work good -> should be fixed in major releases after 4 July 2016

This should be fixed in any future major releases, including betas.

comment:10 by paalfe, 7 years ago

This is a problem for me using Ubuntu 16.04 64-bit and VirtualBox 5.1.12 running Windows 10.

comment:11 by Michael Thayer, 7 years ago

Resolution: fixed
Status: newclosed

comment:12 by corpusr, 7 years ago

Resolution set to fixed

michael, could you please point me to the @rev this has been fixed?

thank you

comment:13 by Michael Thayer, 7 years ago

For 5.1 we (I) completely rewrote keyboard capturing for Linux hosts. Previously we used XGrabKeyboard in full screen mode and seamless, and XGrabKey in other modes. Now we use XGrabKeyboard everywhere for simplicity and to fix this problem. It is hard to point to a specific revision.

comment:14 by kendonb, 4 years ago

I am seeing a very similar problem in Ubuntu 20.04 immediately after upgrading from 18.04.

I have this version of Virtualbox installed https://download.virtualbox.org/virtualbox/6.1.8/virtualbox-6.1_6.1.8-137981~Ubuntu~eoan_amd64.deb.

I am using a Windows 10 Virtualbox guest. When I press the "Windows/Super" key the Ubuntu unity menu responds when the Windows 10 virtualbox should respond. The unity desktop also seems to capture "Alt-Tab" but other "Alt" commands do respond in the Windows virtualbox.

comment:15 by kendonb, 4 years ago

The problem persists even when I'm in Full Screen mode in the virtualbox.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use