Drekin added the comment:
By modifier I mean a key like Shift, Ctrl, Alt, AltGr; or the corresponding
modifier state. A combination modifier + base key produces either special
action or a character or a dead key. A dead key affects the next character
rather than producing a character itself. Dead keys can be even chained, i.e. a
sequence [previous dead key, modifier + base key] can produce another dead key.
(Aside: This feature has been present on Windows for long time, but is used
very rarely and applications are buggy. I spent some time designing my Unicode
keyboard layout using chained dead keys to produce various mathematical
symbols. Then I found out than some applications have problems with the feature
– including Firefox. It's basically because they try to implement the
interpretation of keyboard layout by themselves rather then using standard
Windows implementation through API.)
For example standard Czech keyboard use the AltGr key and the corresponing
state to produce characters like $, #, &, @, {, }, [, ], because the top row is
used for common diacritical combinations and its Shift state for numbers. I
understand that English doesn't need many characters and so the layout usually
doesn't need AltGr or dead keys. But I think even English keyboard should be
able to type characters like English quotes, N-dash, or ellipsis: “, ”, –, ….
I have also changed the title.
----------
title: Tkinter doesn't handle Unicode key events on Windows -> Tkinter doesn't
handle Unicode dead key combinations on Windows
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22408>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com