3

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

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.

2
  • It looks like you tried to add a solution to this question to a different answer. Just post your own solution as an answer (you are allowed to answer your own question).
    – fixer1234
    Nov 26, 2014 at 2:39
  • Just for reference: there's one bug report about this.
    – njsg
    Sep 28, 2016 at 14:43

1 Answer 1

0

Just install SharpKeys and follow these directions to swap Left Ctrl and Caps Lock. The guest's and host's responses to the two keypresses should then be in sync.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .