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.
Copyright © 2002 O'Reilly & Associates. All rights reserved.