Re: Canvas key bindings not working as expected

Jeff Hobbs <[email protected]> Sun, 13 Mar 2011 21:19:32 -0700
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
On 2011-03-13, at 7:38 PM, Jack wrote:
> On 13/03/2011 1:55 PM, Rainer J.H. Brandt wrote:
>> Hello folks,
>> 
>> I'm trying to define bindings to a canvas as a whole.
>> That works for mouse buttons, but not for keyboard events.
>> I tried this:
>> ...
> $c->Tk::focus;
>> 
>> Both button bindings work, but neither of the key bindings do.
>> This is with Perl 5.12.2 and Perl/Tk 804.029 under Solaris 10
>> and Mac OS X Snow Leopard.

To add color, widgets don't get keyboard input unless they have focus.

Jeff
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk