From e3d080ec8d965eb9ad0e606c90f01b9af73facb3 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 30 Oct 2007 19:56:58 +0000 Subject: * library/listbox.tcl (::tk::ListboxBeginSelect): ignore -takefocus when considering focus on <1>, it is for tab focus. --- ChangeLog | 5 +++++ library/listbox.tcl | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2af1208..fc2fd75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Jeff Hobbs + + * library/listbox.tcl (::tk::ListboxBeginSelect): ignore + -takefocus when considering focus on <1>, it is for tab focus. + 2007-10-30 Don Porter * generic/tk.h: Bump version number to 8.5b2.1 to distinguish diff --git a/library/listbox.tcl b/library/listbox.tcl index 26f494e..c6b47b5 100644 --- a/library/listbox.tcl +++ b/library/listbox.tcl @@ -3,7 +3,7 @@ # This file defines the default bindings for Tk listbox widgets # and provides procedures that help in implementing those bindings. # -# RCS: @(#) $Id: listbox.tcl,v 1.16 2007/10/30 01:57:54 hobbs Exp $ +# RCS: @(#) $Id: listbox.tcl,v 1.17 2007/10/30 19:56:58 hobbs Exp $ # # Copyright (c) 1994 The Regents of the University of California. # Copyright (c) 1994-1995 Sun Microsystems, Inc. @@ -244,9 +244,7 @@ proc ::tk::ListboxBeginSelect {w el {focus 1}} { } event generate $w <> # check existence as ListboxSelect may destroy us - if {$focus && [winfo exists $w] - && [string is true -strict [$w cget -takefocus]] - && [$w cget -state] eq "normal"} { + if {$focus && [winfo exists $w] && [$w cget -state] eq "normal"} { focus $w } } -- cgit v0.12