Remapped keys (with xmodmap) in Linux host stopped working i

Discussions related to using VirtualBox on Linux hosts.
Post Reply
yooith
Posts: 1
Joined: 11. Oct 2014, 20:50

Remapped keys (with xmodmap) in Linux host stopped working i

Post by yooith »

I've used the following xmodmap script for years to swap my Left Ctrl and Caps Lock keys in Linux:

Code: Select all

remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
It's also worked in my Windows 8 VM, running in VirtualBox, just fine until recently. Now, the remapping no longer applies to the Windows host - I think it started with the release of VirtualBox 4.3.16. When I try to use the regular Left Ctrl, it triggers Caps Lock in the Linux host.

Anyone know how to fix this?
DavidAMS
Posts: 3
Joined: 15. Nov 2013, 18:48

Re: Remapped keys (with xmodmap) in Linux host stopped worki

Post by DavidAMS »

I just noticed the same thing recently; looks like maybe the client OS is seeing the key presses before xmodmap is applied.

I'm using autohotkey in my windows client. If you wanted to try that, you would create your hotkeys using something like:

Code: Select all

lctrl::capslock
Capslock::lCtrl
Hope this helps.
Post Reply