﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
16648,"Linux VBox 5.1 ignores modifier key mapping (xmodmap) -> design decision, see work-arounds",jamshark70,,"In Ubuntu, I use xmodmap to make ctrl and alt easier to type.

Physical keyboard, bottom row from left:
Ctrl, Super, Alt, spacebar, ...

Remapped:
Super, Alt, Ctrl, spacebar

{{{
clear control
clear mod1
clear mod4
clear mod5
!!!! These are the codes for the way *I* want the keys
!!!! For some reason, if Super_L appears in mod1, it doesn't work.
!!!! Hitting Alt (originally Super) by itself *acts* like Super
!!!! So I have to rename the symbols here
keycode  64 = Control_L
keycode 108 = Control_R
keycode  37 = Super_L
keycode 105 = Super_R
keycode 133 = Alt_L
keycode 134 = Alt_R
keycode 135 = Menu
add control = Control_L Control_R
add mod1    = Alt_L Alt_R
add mod4    = Super_L Super_R
}}}

Under VirtualBox 4.8, the remapping carried through into the guest OS.

In VBox 5.1, the guest seems to be catching the keystrokes before the xkb/xmodmap layer, so the remapping is broken.

https://forums.virtualbox.org/viewtopic.php?f=7&t=64108&p=309293&hilit=xmodmap#p309293

Rationale: I have a repetitive strain injury, so it's important for me to avoid unnecessary muscle movement. Ctrl is the most commonly used modifier, but it's in the worst possible place on the keyboard -- and in fact, reaching for the Ctrl key with my pinky has been extremely stressful. I get a lot of relief from moving Ctrl to be basically under my thumb.

Now I have to retrain my muscle memory to use the physical Ctrl key, but only in a VirtualBox guest. It's very bizarre... and I can't understand why it was changed, because it used to work perfectly.

I suppose the developer perspective might be, ""Well, we can't support all kinds of nonstandard configurations."" But... this is an adaptation for a physical condition. Software should adapt to our needs, not the other way around.",defect,closed,GUI,VirtualBox 5.1.18,wontfix,keyboard modifier xmodmap,,Windows,Linux
