20
11
I'm currently running a VirtualBox of Arch Linux with Windows 7 x64 as the host. In Arch, I use dwm for window management. As dwm is heavily dependent on hotkeys, I've used the Alt key as its META key to prevent conflict with the Windows 7 host. However, when using Emacs (also heavy hotkey usage) within dwm, there are issues because it's also using Alt for its own META.
I'd like to change either dwm or Emacs to use the windows key as META, but commands such as Win+L will be captured by the host machine and lock my system. Is there any way to prevent these hotkeys from being triggered while within VirtualBox?
Works on Windows 10 too, nice – Hubro – 2016-01-13T13:50:14.057
1No idea why my edit was rejected but if you need permissions to create this key, you'll need to start regedit as an administrator. HKCU will now refer to the admin so find your user's hive in HKU\[your SID]. To get your SID, run Powershell and type "wmic" then "useraccount where name='your_username' get sid". From there, follow the instructions as above, just in HKU\[Your SID] instead of HKCU. Unfortunately, doing this disables the ability to lock entirely. An alternative is to instead disable Win+key hotkeys with a DWORD NoWinKeys=1 key in this same place. – sraboy – 2016-05-30T00:17:49.527
3This will completely remove the lock feature though, not just the hotkey for it, which may not be ideal – Eldamir – 2017-02-14T12:37:22.527
+1 this worked for me on Windows 7 64-bit – Kamil Kisiel – 2010-11-20T05:49:19.163