Possible to trigger event on enter key without using hook?
Alec Bennett
whatyoulookin at yahoo.com
Mon Dec 10 09:39:05 PST 2007
I'd like to trigger an event when someone presses
enter in a TextCtrl, but setting the EVT_CHAR_HOOK
makes it so keys like backspace don't register. That
kills it for my purposes, since I'd still like the
user to be able to edit their entry if, for example,
they make a typo.
Is there some way to allow them to submit their "form"
when they hit enter? Maybe a way to narrow the scope
of EVT_CHAR_HOOK so it only applies to the enter key?
Thanks for any help.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the wxpython-users
mailing list