Book HomeMastering Perl/TkSearch this book

9.17. Setting Keyboard Focus

To assign the keyboard focus to an item, use the focus method:

$canvas->focus(tag/id);

If the item doesn't know what to do with the keyboard focus, nothing will happen. You'll use this to change the focus to a widget within the Canvas.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.