How can I make Virtualbox ignore specific keys?

4

I use Virtualbox with Windows on Ubuntu host. I keep it on separate workspace (I use Xmonad). Xmonad uses Windows key as modifier. The problem is: when I press it, Windows machine opens start menu. Disabling keyboard autocapture helped a bit, but not completely. So, is there a way to setup Virtualbox in a way, so it will completely ignore specific keys or sequences?

user81420

Posted 2011-08-28T08:07:14.220

Reputation: 245

1One might be interested in the fact that the «AwesomWM» out of the box doesn't allow to intercept its keys to VirtualBox. I just moved to the XMonad because I am not interested in Lua, but wanted to learn Haskell, and found that this have no this featur ☹ – Hi-Angel – 2015-02-10T07:16:53.487

related, with respect to media keys https://www.virtualbox.org/ticket/4263

– Tim Abell – 2018-10-05T10:27:33.293

Answers

1

These work for the guest windows in non Virtualbox environments and should control the guest.
In the windows guest can you right click on the desktop and select:-
-> graphic options -> then Hotkeys -> disable.
Disable all Hotkeys except win+l win+u-, reboot required.
http://www.autohotkey.com/docs/misc/Override.htm
I've tested on win 7 [options -> disable, the other says it works on all OS's(it is a Registry hack, normal warnings on reg.)]
Hope one of them works.

mic84

Posted 2011-08-28T08:07:14.220

Reputation: 2 313

1

Try adding this in your .xmonad/xmonad.hs file:

((0, xK_Super_L), return ())

Got it from here: http://comments.gmane.org/gmane.comp.lang.haskell.xmonad/12141

B.I.

Posted 2011-08-28T08:07:14.220

Reputation: 155