Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use a VirtualBox Windows 7 guest in seamless mode on an Ubuntu 12.04 linux host running Gnome 3.

Under normal operation when VirtualBox is not running, pressing the Windows Key on the keyboard launches the Gnome activity panel.

When the Windows guest is running and is in the foreground, pressing the Windows Key opens the Windows menu inside the guest.

Is there anyway to configure it so that the Windows Key will be ignored by the guest, and passed through to the host?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Yes. Open the VirtualBox Manager window, and go to "File" menu, "Preferences" (Ctrl-G).

Under "Input", uncheck the box labeled "Auto Capture Keyboard". There is no need to restart the VM if it's running, so this can be changed "on the fly".

share|improve this answer
    
Is there any way to do this in reverse (i.e. from Host to Guest). I have an Arch Linux guest with a Ctrl+Alt+T combo mapped to terminator and I want that key combo to be forwarded from my host (windows 8) to my guest (Arch which has guest additions installed and working). I know this isn't strictly related to Ubuntu, but I would appreciate some help, I can't find anything. –  Brandon Aug 6 '13 at 17:31
    
Well, simplistically, you would just not check that checkbox, which is essentially the original problem. But there must be more to it than that. Normally, when the guest has the focus, that key combination would go to the guest, not the host. However, I never run in seamless mode, so perhaps there's a problem in that mode. Does it work if the guest is full screen? If in seamless mode, does it work if a guest app has focus? –  Marty Fried Aug 6 '13 at 21:33
    
Yea but what I'm looking to do is - when in seamless mode - have a certain key combination forwarded from the host to the guest when a host window is focused. So if I'm in Chrome in Windows (the host) and I press Ctrl+Alt+T, I want Arch (the guest) to open terminator. I've looked into VBoxManage guestcontrol execute ... but it's exhibiting really wierd behavior. I'll end up opening another question on Super User probably because this is becoming more and more complicated. –  Brandon Aug 7 '13 at 19:40
    
From my experience, that's not something that would normally happen. The host knows nothing about the guest, and so won't forward anything to it. The only way would be to have an app running on the host to monitor all keystrokes. That could be done, although I don't know the VB API, but you or someone will need to write the app to run on the host. –  Marty Fried Aug 7 '13 at 21:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.