8

Setup: I have VirtualBox running, my guest OS is Windows 7. I also have multiple Ubuntu workspaces which I navigate with Ctrl+Alt+Arrow keys.

The problem is that when the virtual machine window gets focus, it traps the Ctrl+Alt keys (actually it traps all keys, which is technically correct behavior), but then those keys no longer perform my host OS workspace switching.

I'd like the workspace switch shortcut key to continue working even if my VM is focused. I suppose I wouldn't mind if both OSes receive the Ctrl+Alt+Arrow and process them (though my VM doesn't use these shortcut keys.)

My current workaround is to click outside (unfocus) the VM, but I don't want to have to do this.

There may be no solution to this, but I thought I'd ask.

5

At present there is no option to customize the capture behavior of host keystrokes in VirtualBox. It is either always "Auto Capture Keyboard" or never so. This can be defined in the application preferences from Virtual Box Manager preferences dialog.

A convenient way to temporarily toggle host keyboard capturing is pressing the Host-key once. By default this is set to RightCtrl but on my system I set it to RightShift as shown below:

enter image description here

If auto-capture was enabled we can use the host keys until we toggle back.

In case we had used AltTab application switcher the guest restores the default keyboard capture state when the guest windows gets focus again.

  • 1
    Bummer, I thought that might be the case. Thanks for the "tap the host key" suggestion - that allows me to use CTRL-ALT-Arrow -- a better workaround than moving my hand to the mouse. – Jeff Ward Jun 9 '15 at 19:07
  • 1
    yeah - it's more convenient, and when using the application switcher ALT TAB it even restores the caputre automatically ,) – Takkat Jun 9 '15 at 19:10
  • 1
    Yup, "tap the host key" makes it workable for me as well, that´s good advice. – Gerben Rampaart May 12 '17 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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