Tk Library Source Code

View Ticket
Login
Ticket UUID: 1019052
Title: bwidget listbox makes wrong key-bindings
Type: Bug Version: None
Submitter: nobody Created on: 2004-08-30 12:59:58
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-09-15 06:47:13
Resolution: Fixed Closed By: hobbs
    Closed on: 2004-09-14 23:47:13
Description:
versions: 1.6 and 1.7
Tcl: TclKit 8.4.5 and Tcl/Tk 8.4.6
OS: SuSE Linux 9.1 running KDE 3.2.1, verified in the 
BWidget demo from ActiveTcl 8.4.5 (BWidget 1.7)

The BWidget ListBox binds the <Key-Up> and <Key-
Down> events to the class ListBox, which refers to the 
frame. It should however be bound to the canvas inside 
that frame.

A quick hack for me was to add these two lines to the 
end of ListBox::create:

bind $path.c <Key-Up> \
[list ListBox::_keyboard_navigation $path -1]
bind $path.c <Key-Down> \
[list ListBox::_keyboard_navigation $path 1]

There is probably a nice way of doing this....
User Comments: hobbs added on 2004-09-15 06:47:13:
Logged In: YES 
user_id=72656

a variant of these is in the bwidgets head.