VirtualBox

Opened 13 years ago

Last modified 13 years ago

#7952 new defect

gues key mapping problem while host is using XkbOptions

Reported by: Zer4tul Owned by:
Component: other Version: VirtualBox 4.0.0
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

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"
 EndSection

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 (2)

comment:1 by Michael Thayer, 13 years ago

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

http://virtualbox.org/download/testcase/VirtualBox-2011-01-11-19-16-25-lin64-rel-4.0.1-r69374.run http://virtualbox.org/download/testcase/VirtualBox-2011-01-11-19-31-00-lin32-rel-4.0.1-r69374.run

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 by Zer4tul, 13 years ago

yes, it works well.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use