Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Tk preventing a char in Entry widged to trigger a KeyBinding -- solutionby Discipulus (Canon) |
on Oct 12, 2016 at 08:32 UTC ( [id://1173808]=note: print w/replies, xml ) | Need Help?? |
Thanks to his Anonymousity and all other monks who spent some time to help me. I think the bind qw/Tk::Entry <Key-?>/,sub{Tk->break}); is the laziest solution. In the case of several TopLevel windows, bindings can be aggregated into a lookup table. Then foreach window any binding is bound to the window and removed for the Tk::Entry class. It is also useful to bind <Return> to give back the focus for all Tk::Entry widgets.
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|