Bug 19521

Summary: xkb RedirectKey config sends 2 events instead of 1
Product: xorg Reporter: Frédéric Lepied <frederic.lepied>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: frederic.lepied, jonas
Version: 7.3 (2007.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Frédéric Lepied 2009-01-12 06:47:40 UTC
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.
Comment 1 Frédéric Lepied 2009-01-28 05:06:25 UTC
I tested with xorg-server 1.6rc and the bug seems to be fixed. Any idea where to look to fix xorg-server 1.4.2 ?

Thanks,
Fred
Comment 2 Adam Jackson 2018-06-12 18:42:54 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.