All of lore.kernel.org
 help / color / mirror / Atom feed
* trouble when ctrl/caps key swapped by X
@ 2009-08-17 14:27 fkater
  2009-08-18 13:57   ` [Qemu-devel] " Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: fkater @ 2009-08-17 14:27 UTC (permalink / raw)
  To: kvm

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: trouble when ctrl/caps key swapped by X
  2009-08-17 14:27 trouble when ctrl/caps key swapped by X fkater
@ 2009-08-18 13:57   ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2009-08-18 13:57 UTC (permalink / raw)
  To: fkater; +Cc: kvm, qemu-devel

On 08/17/2009 05:27 PM, fkater@googlemail.com 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.
>
> 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?

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: trouble when ctrl/caps key swapped by X
@ 2009-08-18 13:57   ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2009-08-18 13:57 UTC (permalink / raw)
  To: fkater; +Cc: qemu-devel, kvm

On 08/17/2009 05:27 PM, fkater@googlemail.com 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.
>
> 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?

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: trouble when ctrl/caps key swapped by X
  2009-08-18 13:57   ` [Qemu-devel] " Avi Kivity
@ 2009-08-21 10:12     ` fkater
  -1 siblings, 0 replies; 5+ messages in thread
From: fkater @ 2009-08-21 10:12 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm, qemu-devel

Avi Kivity:

> On 08/17/2009 05:27 PM, fkater@googlemail.com wrote:
> > 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.
>
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: trouble when ctrl/caps key swapped by X
@ 2009-08-21 10:12     ` fkater
  0 siblings, 0 replies; 5+ messages in thread
From: fkater @ 2009-08-21 10:12 UTC (permalink / raw)
  To: Avi Kivity; +Cc: qemu-devel, kvm

Avi Kivity:

> On 08/17/2009 05:27 PM, fkater@googlemail.com wrote:
> > 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.
>
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-21 10:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-17 14:27 trouble when ctrl/caps key swapped by X fkater
2009-08-18 13:57 ` Avi Kivity
2009-08-18 13:57   ` [Qemu-devel] " Avi Kivity
2009-08-21 10:12   ` fkater
2009-08-21 10:12     ` [Qemu-devel] " fkater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.