Ticket #2513 (closed defect: fixed)

Opened 10 years ago

Last modified 8 years ago

Switched Ctrl/Caps key dont work properly in Windows Guests => fixed in svn

Reported by: cryptom Owned by:
Priority: major Component: other
Version: VirtualBox 2.0.6 Keywords:
Cc: Guest type: Windows
Host type: Linux


I use the X-Server option

Option "XkbOptions" "ctrl:swapcaps"

to switch the ctrl key with the caps lock key.

Before updating to VirtualBox 2.0, this mapping used to work also in Windows guests. Since the Update to VB 2.0 it doesn't work properly anymore. The Update to 2.0.2 fixed it a little bit (it doesnt crash or freeze the guest any more).

The behavior now is the following: The linux hosts works with ctrl and caps lock switched (see X-Server option above), the windows guest acts as follows:

  • ctrl press and release -> Caps Lock on or off (keyboard LED is turned on/off) -> works correctly
  • ctrl-s (which should be mapped to caps) -> opens the save dialog _and_ -> turns on/off caps lock -> works only partially
  • caps-s (which should open the save dialog box) -> prints a upper case 'S' when caps lock LED is off -> prints a lower case 's' when caps lock LED is on -> works only partially

I hope this will be fixed soon as it is very annoying if you are used to having the keys switched! And it used to work with earlier versions.

Thanks for your great work Tom

Change History

comment:1 Changed 10 years ago by michael

Could you also try this with VirtualBox 2.0.4, in case that makes a difference?

comment:2 Changed 10 years ago by cryptom

I tried version 2.0.4. The described behavior is the one seen with 2.0.4. Sorry that I did not make this perfectly clear (I've just selected the correct version in the bug description).

I did not see an improvement between versions 2.0.2 and 2.0.4, but it was even worse with 2.0.0.

comment:3 Changed 10 years ago by cryptom

Unfortunately, version 2.0.6 did not address this problem.

Switching this Ctrl und Caps keys on the linux host does not work correctly in a windows guest. Using the keys alone is working:

  • pressing and releasing the Ctrl key turns the Caps Lock LED on and off
  • nothing happens when pressing the Caps key

But in combination with a second key, it does not work:

  • I still need to hit Ctrl-s to get the saving dialog in apps (_and_ Caps is turned on!!!)

I would very much appreciate a patch to correct the issue. Thanks


comment:4 Changed 10 years ago by michael

  • Status changed from new to closed
  • Version changed from VirtualBox 2.0.4 to VirtualBox 2.0.6
  • Resolution set to fixed
  • Summary changed from Switched Ctrl/Caps key dont work properly in Windows Guests to Switched Ctrl/Caps key dont work properly in Windows Guests => fixed in svn

This works for me with the current development version. The changeset which probably fixed this (which was not backported to the 2.0 series) is

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