[wxPython-users] Keycode vs UnicodeKey in wx.EVT_CHAR
Josiah Carlson
jcarlson at uci.edu
Sat Nov 4 09:50:21 PST 2006
Johannes Vetter <johannes.vetter at bytewise.at> wrote:
[snip]
> I've tried that sample and the KeySink instance (which derives from
> wx.Window) handles the EVT_KEY* events as expected. But this doesn't
> help me much, since I have to catch the EVT_CHAR for wx.TextCtrl which
> does not handle it right. Is there a way to circumvent this
> shortcomming for wx.TextCtrl ?
What you can do is to check the key code and the state of the shift key.
Based on the value of the shift key and what you expect, you can adjust
the values you process.
- Josiah
More information about the wxpython-users
mailing list