Duplicate Symbols on Different Shift Levels Cause Shortcuts to Misbehave
Submitted by Drew Henry
Assigned to Jérôme Guelfucci
Description
I recently redesigned my keyboard layout using xkb which includes multiple groups and some symbols being duplicated. In particular, a few of my XF86 symbols are on different shift levels on different keys (they make up the first shift level on dedicated keys and the third shift level of various alphabetic keys). Unfortunately, it seems that when a keyboard shortcut is defined in XFCE it looks for the shift level of the symbol originally used to define the shortcut rather than the symbol itself.
Example: I have a dedicated calculator button and create a shortcut to open a calculator application with it. I also have the XF86Calculator symbol bound to the third shift level of an alphabetic key. I am now no longer able to use the first shift level of that key because XFCE thinks I am trying to activate a keyboard shortcut. When checking the keypress in xev the first shift level can be seen to produce a focus event rather than a keypress event.
Steps to Reproduce:
In xkb, take the backslash key (or any random key) and redefine it as "key <BKSL>
{ [ Q, q ] };" (i.e. the same as the q key but with the capitalizations switched). Next define a keyboard shortcut to be activated when lowercase q is pressed. Now try to activate that shortcut with the backslash key; even though the shortcut was defined for lowercase q, now we will see that Q opens the shortcut while q is typed normally.