Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 12962
Status: rejected
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: dsan [...] pml.ac.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 804.027
Fixed in: (no value)



Subject: Tk::Listbox does not respond to keyboard
Distribution: RedHat 9 Perl Version : v5.8.0 built for i686-linux uname -a: Linux pmpc828 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux See attached file for a test case. The listbox does not respond to any of the default keyboard bindings. I have run a test which binds '<Any-KeyPress>' to a perl callback which outputs the key pressed. It appears that the listbox doesnt receive any keyboard events at all.
use Tk; $wnd = MainWindow->new; $lst = $wnd->Scrolled('Listbox'); for(1..1000) { $lst->insert('end', $_); } $lst->pack; $wnd->update; MainLoop;
On Thu May 26 07:38:41 2005, guest wrote: Show quoted text
> Distribution: RedHat 9 > Perl Version : v5.8.0 built for i686-linux > uname -a: Linux pmpc828 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST > 2003 i686 i686 i386 GNU/Linux > > See attached file for a test case. The listbox does not respond to any > of the default keyboard bindings. > I have run a test which binds '<Any-KeyPress>' to a perl callback > which outputs the key pressed. It appears that the listbox doesnt > receive any keyboard events at all.
Subject: Re: [rt.cpan.org #12962] Tk::Listbox does not respond to keyboard
Date: Tue, 11 Apr 2006 21:08:25 +0100
To: bug-Tk [...] rt.cpan.org
From: Nick Ing-Simmons <nick [...] ing-simmons.net>
Guest via RT <bug-Tk@rt.cpan.org> writes: Show quoted text
> Queue: Tk > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=12962 > > >On Thu May 26 07:38:41 2005, guest wrote:
>> Distribution: RedHat 9 >> Perl Version : v5.8.0 built for i686-linux >> uname -a: Linux pmpc828 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST >> 2003 i686 i686 i386 GNU/Linux >> >> See attached file for a test case. The listbox does not respond to any >> of the default keyboard bindings. >> I have run a test which binds '<Any-KeyPress>' to a perl callback >> which outputs the key pressed. It appears that the listbox doesnt >> receive any keyboard events at all.
Does the listbox have the keyboard focus?
Please use $lb->focus to set the focus to the listbox or move the focus manually by using the Tab key.