Ticket #7952 (new defect)

Opened 5 years ago

Last modified 5 years ago

gues key mapping problem while host is using XkbOptions

Reported by: zer4tul Owned by:
Priority: major Component: other
Version: VirtualBox 4.0.0 Keywords:
Cc: Guest type: Linux
Host type: Linux


My host is archlinux with xorg 7.6, and i am using XkbOption for some key mapping workaround, like blow:

 Section "InputClass"
         Identifier "evdev keyboard catchall"
         MatchIsKeyboard "on"
         MatchDevicePath "/dev/input/event*"
         Driver "evdev"
     Option "XkbLayout" "us, de"
     Option "XkbOptions" "ctrl:swapcaps, grp:menu_toggle"

with this configuration, the keys "CapsLock" and "Ctrl" are swapped, and the key "Menu" is mapped to "ISO_Next_Group".

This workaround works fine before I updated virtualbox to 4.0.0. after updated i found it does not work for guests (neither for linux or windows guest). I've tried using xev in the guest to catch what happend. When I press down "CapsLock", it should be "Control_L", but it is "CapsLock".

It seems that virtualbox has ignored the XkbOptions and accesses the keyboard as is.

Change History

comment:1 Changed 5 years ago by michael

You might try one of these two test builds from the stable branch (see disclaimer) -

The first is 64bit, the second 32bit. I believe they should fix your issue (they still don't allow remapping of alphanumeric keys, so if you want to make "Q" behave like caps lock you are out of luck...)

comment:2 Changed 5 years ago by zer4tul

yes, it works well.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use