7

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
  • 275
  • 4
  • 7
  • 1
    One 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 Feb 10 '15 at 07:16
  • related, with respect to media keys https://www.virtualbox.org/ticket/4263 – Tim Abell Oct 05 '18 at 10:27

2 Answers2

2

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
  • 2,363
  • 2
  • 21
  • 17
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

Sathyajith Bhat
  • 61,504
  • 38
  • 179
  • 264
B.I.
  • 155
  • 2
  • 7