keysym_to_keycode() returns unexpected keycode for '<' character #168
Comments
|
It's been a long time since I looked at X keycodes, but based on your example it seems the results are primarily sorted on index and thus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I was writing an automation script on
Ubuntu 18.04usingpython-xlibwhen I noticed that keycode returned by theDisplay.keysym_to_keycode()for<wasn't what I expected.Code snippet:
Output:
Since
period(.)andgreater(>)are typed using the same key on a keyboard, it makes sense that the code returned by keysym_to_keycode() is same for both i.e.60where former is unshifted and the latter requires pressing the shift key too.Questions: Shouldn't the same apply to
comma(,)andless(<)as well ? Shouldn't the codes returned for both of them be59where former would be unshifted and the latter would be shifted? What does (94, 0) represent ? Is it for a different keyboard layout ?[Ubuntu 18.04][python 3.6.9]I'm new to
Xliband there can be gaps in my understanding, but I find this inconsistent. Can someone please confirm if this is the expected behavior or am I missing something ? Any help would be appreciated.Thanks,
Sagar Bhat
The text was updated successfully, but these errors were encountered: