and you can get access to the event to find out which key was pressed in the callback() routine. Have a look at the Tk::bind and Tk::Event man pages for more info.$widget->bind(q{<KeyPress>}, \&callback);
Cheers,
JohnGG
In reply to Re: Binding keys to events?
by johngg
in thread Binding keys to events?
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |