summaryrefslogtreecommitdiffstats
path: root/library/tk.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2003-02-18 21:24:38 (GMT)
committerhobbs <hobbs@noemail.net>2003-02-18 21:24:38 (GMT)
commit0ac31eb6d5f9bdd17dae3bb1261219a7ff5f8c0e (patch)
treed59069f3fc2c81a2fb1ee9349a876092de64c434 /library/tk.tcl
parent5ee7fa513d5a65d28fc12621e04c0fd4a8c4a045 (diff)
downloadtk-0ac31eb6d5f9bdd17dae3bb1261219a7ff5f8c0e.zip
tk-0ac31eb6d5f9bdd17dae3bb1261219a7ff5f8c0e.tar.gz
tk-0ac31eb6d5f9bdd17dae3bb1261219a7ff5f8c0e.tar.bz2
* library/tk.tcl (::tk::TabToWindow): auto-highlight spinboxes as
well as entries when tabbing in. [Patch #683813] (bron) FossilOrigin-Name: 66bbccbfccea7a5a41b436dab72c626ba0e55505
Diffstat (limited to 'library/tk.tcl')
-rw-r--r--library/tk.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index f9abc6c..1d0d3d0 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -3,7 +3,7 @@
# Initialization script normally executed in the interpreter for each
# Tk-based application. Arranges class bindings for widgets.
#
-# RCS: @(#) $Id: tk.tcl,v 1.45 2002/10/10 16:34:51 hobbs Exp $
+# RCS: @(#) $Id: tk.tcl,v 1.46 2003/02/18 21:24:39 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -442,13 +442,14 @@ proc ::tk::CancelRepeat {} {
# ::tk::TabToWindow --
# This procedure moves the focus to the given widget. If the widget
-# is an entry, it selects the entire contents of the widget.
+# is an entry or a spinbox, it selects the entire contents of the widget.
#
# Arguments:
# w - Window to which focus should be set.
proc ::tk::TabToWindow {w} {
- if {[string equal [winfo class $w] Entry]} {
+ if {[string equal [winfo class $w] Entry] \
+ || [string equal [winfo class $w] Spinbox]} {
$w selection range 0 end
$w icursor end
}