Bug 19521 - xkb RedirectKey config sends 2 events instead of 1
Summary: xkb RedirectKey config sends 2 events instead of 1
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.3 (2007.09)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 06:47 UTC by Frédéric Lepied
Modified: 2018-06-12 18:42 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.