in reply to Perl/Tk CanvasBind question
Yes, in order for key events to be sent to any widget, that widget must have the current focus. The way this is usually done is by pressing Tab to traverse your application moving from one widget to the next. Once it has focus, your binding should work as expected. You can also force the initial focus by using:
$can->focusForce;
|
|---|