Mailinglist Archive: opensuse (1786 mails)

< Previous Next >
Re: [opensuse] Assigning key to an application
Le 20/11/2011 15:57, Will Stephenson a écrit :
On Sunday 20 Nov 2011 00:04:09 akouane wrote:
I have a keyboard with a bunch of fancy
multimedia keys, which seem fine in xev, but that I can't bind in
systemsettings -> Shortcuts -> Standard shortcuts (or whatever it's
called in english, I run a French KDE). I got a "The key you just
pressed is not supported by Qt" error ...
This means that the keypresses aren't mapped to values in the Qt::Key[1] enum
(list of all keys) that KDE uses to work with keyboard events.

The logic is:
Raw key code -> keysym code -> Qt::Key -> KDE shortcuts program handles it


Either you need to specify the keyboard type to the X server, so it produces a
raw code that X and converts to the standard keysym code (in other words, the
first mapping is failing for you, or the keyboard has keys that Qt really
doesn't know about yet (the second mapping fails).

To find out what is happening, run xev in a console, focus the xev window,
press the key, and copy us the "KeyPress event" output that appears.

Will
Thank you for the reply.
So there you go, the xev output :

KeyPress event, serial 34, synthetic NO, window 0x6200001,
root 0x15d, subw 0x0, time 25674737, (27,-259), root:(1066,373),
state 0x10, keycode 139 (keysym 0xff65, Undo), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x6200001,
root 0x15d, subw 0x0, time 25674841, (27,-259), root:(1066,373),
state 0x10, keycode 139 (keysym 0xff65, Undo), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

I suppose a solution is at reach since the key pressed is precisely designed to "Undo", so a lizard somewhere in this distro knows what to do with it ... ;-)

Have a nice sunday,

Antoine
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups