Tk Library Source Code

View Ticket
Login
Ticket UUID: 449284
Title: Tree does not handle Space key
Type: Bug Version: None
Submitter: andreas_kupries Created on: 2001-08-08 20:48:01
Subsystem: bwidget Assigned To: andreas_kupries
Priority: 4 Severity:
Status: Closed Last Modified: 2001-08-09 03:58:53
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-08-08 20:58:53
Description:
On behalf of Matthias Kleine.

> Hi,
> 
> while working with the BWidgets version 1.3.1, I 
found 
> a behaviour which should be corrected in future 
BWidget 
> versions. 
> 
> In file tree.tcl, function Tree::_keynav, the code 
to 
> handle the "space" event for navigation in the 
BWidget 
> tree lacks a call to the opencmd, when the tree is 
opened 
> (and to the closecmd, when the tree is closed).
> 
> For example, the left-arrow event call the following 
code
> when opening a tree node:
> 
> if { [set cmd [Widget::getoption $win -opencmd]] !
= "" } {
>                     uplevel \#0 $cmd $node
> }
> 
> This leads to a call to the opencmd of the tree. 
Without 
> this call, we have no chance to control what is 
happening 
> when the user presses the space key.
> 
> Regards,
> Matthias
User Comments: andreas_kupries added on 2001-08-09 03:58:40:
Logged In: YES 
user_id=75003

Committed.

andreas_kupries added on 2001-08-09 03:56:21:

File Added - 9385: bwidget.449284.diff

andreas_kupries added on 2001-08-09 03:56:20:
Logged In: YES 
user_id=75003

Added patch fixing the problem.

Attachments: