Skip to contentSkip to conversation

trouble when ctrl/caps key swapped by X

DISCUSSION [email protected] 2 participants 3 messages Aug 17, 2009 – Aug 21, 2009 KVM

lore
Share & tools
lore
#0 lore raw

Hi,

I have the ctrl/caps keys swapped by X in xorg.conf:

Option "XkbOptions" "ctrl:swapcaps"

The fact that this is not honoured by the guest (win2k) might be intended or acceptable.

However, when switching from the guest window to the host and vice versa using the key combination Ctrl-Tab, the guest additionally interprets that as a Caps Lock stroke. This is of couse not intended.

The result: After each Ctrl-Tab switch, win2k is alternates between Caps Lock on an off...

This does of course not happen when using a mouse click into the guest window for switching to the guest.

I hope this list is the right place for this issue.

Thank You,
Felix

#1 lore raw
Quoted 14 lines · On 08/17/2009 05:27 PM, [email protected] wrote:

Hi,

I have the ctrl/caps keys swapped by X in xorg.conf:

Option "XkbOptions" "ctrl:swapcaps"

The fact that this is not honoured by the guest (win2k) might be intended or acceptable.

However, when switching from the guest window to the host and vice versa using the key combination Ctrl-Tab, the guest additionally interprets that as a Caps Lock stroke. This is of couse not intended.

Quoted 9 lines

The result: After each Ctrl-Tab switch, win2k is alternates between Caps Lock on an off...

This does of course not happen when using a mouse click into the guest window for switching to the guest.

I hope this list is the right place for this issue.

The qemu list (copied) is probably a better place.

Does swapping the keys in the guest work?

Signature · 1 line
error compiling committee.c: too many arguments to function
#2 lore raw

Avi Kivity:

Quoted 13 lines · On 08/17/2009 05:27 PM, [email protected] wrote:
Quoted 12 lines

I have the ctrl/caps keys swapped by X in xorg.conf:

Option "XkbOptions" "ctrl:swapcaps"

The fact that this is not honoured by the guest (win2k) might be intended or acceptable.

However, when switching from the guest window to the host and vice versa using the key combination Ctrl-Tab, the guest additionally interprets that as a Caps Lock stroke. This is of couse not intended.

Quoted 7 lines
Quoted 5 lines

The result: After each Ctrl-Tab switch, win2k is alternates between Caps Lock on an off...

This does of course not happen when using a mouse click into the guest window for switching to the guest.

Does swapping the keys in the guest work?

Not really:

This is the result for keys pressed in a cmd.exe:

If Ctrl-f is pressed (Ctrl key is originally Caps Lock), then you simply get an uppercase F (like when pressed Shift-f).

If Caps Lock is pressed once (Caps Lock key is originally Ctrl key), then all following keys are interpreted as escaped letters (like when pressed with Ctrl normally):

* press Caps Lock once
* type f -> get ^F
* type g -> get ^G
* press Caps Lock once again to undo this behaviour

Note: There is also a registry hack under windows to swap the Ctrl and Caps Lock keys which does makes things even more confusing though.

Thank You
Felix