[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#513144: xkb RedirectKey config sends 2 events instead of 1



Package: xserver-xorg-core
Version: 1.4.2-10

When I assign a key to send a Control-c with the RedirectKey action of xkb, the
X server sends correctly a KeyPress with "Control-c" but it also sends a "c"
and then the same thing with 2 KeyRelease events.

To do the config quickly, add the following file under xkb/compat/edit

default partial xkb_compatibility "basic" {
interpret.repeat= False;

// Ctrl+C for Copy
interpret XF86Copy {
action = Redirect(Key=<AB03>, modifiers=Control);
};
};

Put "edit" in the compat/complete file:

default xkb_compatibility "complete"  {
   include "basic"
   augment "iso9995"
   augment "mousekeys"
   augment "accessx(full)"
   augment "misc"
   augment "xfree86"
   augment "level5"
   augment "edit"
};

Then you can change the mapping of one of your key using xmodmap:

keycode 69 = XF86Copy


and you'll see the problem with xev.

begin:vcard
fn;quoted-printable:Fr=C3=A9d=C3=A9ric Lepied
n;quoted-printable:Lepied;Fr=C3=A9d=C3=A9ric
org:Splitted-Desktop Systems
adr;quoted-printable:Route de l'Orme des Merisiers;;B=C3=A2timent Aristote - Parc des Algorithmes;Saint-Aubin;;91190;France
email;internet:frederic.lepied@splitted-desktop.com
title;quoted-printable:Directeur de l'innovation et de la strat=C3=A9gie produit
tel;work:+33169307334
x-mozilla-html:FALSE
url:http://www.splitted-desktop.com/
version:2.1
end:vcard


Reply to: