Remap keys (with xmodmap) in Linux host stopped working in VirtualBox Windows guest


Sluni

I've been swapping my Left Ctrl and Caps Lock keys in Linux for years using the following xmodmap script:

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 also worked in my Windows 8 VM and in VirtualBox until recently. Now, remapping doesn't work for Windows hosts anymore - 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.

Sluni

Just install SharpKeys and follow the instructions below to swap Left Ctrl and Caps Lock. The guest and host responses to the two keystrokes should then be synchronized.

Related


VirtualBox 64-bit guest VM stopped working after upgrade

Rebits I have successfully used VirtualBox 4.2.18 to run a Windows Server 2012 VM on a Windows 8 64bit host. After upgrading to VirtualBox 4.3.0, the VM fails to start because it states that a 64-bit processor is not detected. The version dropdown also doesn't

VirtualBox 64-bit guest VM stopped working after upgrade

Rebits I have successfully used VirtualBox 4.2.18 to run a Windows Server 2012 VM on a Windows 8 64bit host. After upgrading to VirtualBox 4.3.0, the VM fails to start because it states that a 64-bit processor is not detected. The version dropdown also doesn't

Unable to remap keys using xmodmap in Fedora 26

John Du I want to remap the caps lock key with the caps lock key to be able to write special characters instead of numbers when the caps lock key is activated. Unfortunately, I can't get it to work. I have tried the following: xmodmap -e "keycode 66 = Shift_Lo

Unable to remap keys using xmodmap in Fedora 26

John Du I want to remap the caps lock key with the caps lock key to be able to write special characters instead of numbers when the caps lock key is activated. Unfortunately, I can't get it to work. I have tried the following: xmodmap -e "keycode 66 = Shift_Lo