summaryrefslogtreecommitdiffstats
path: root/library/listbox.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-08-09 16:52:06 (GMT)
committerhobbs <hobbs>1999-08-09 16:52:06 (GMT)
commit1cdd5fb850d1be603e0994761bd0271233c964c4 (patch)
treef060237106a1a4defd9d5b17e9d60637f751f2c2 /library/listbox.tcl
parent8cc6723852260c12857f4c3eeff827a2b8d612f6 (diff)
downloadtk-1cdd5fb850d1be603e0994761bd0271233c964c4.zip
tk-1cdd5fb850d1be603e0994761bd0271233c964c4.tar.gz
tk-1cdd5fb850d1be603e0994761bd0271233c964c4.tar.bz2
1999-08-09 Jeff Hobbs <hobbs@scriptics.com>
* library/button.tcl: cleaned up programming (config -> configure) and fixed Windows relief bug [Bug: 664] * library/entry.tcl: changed Entry C/C/P to not use global data (now uses tkPriv(data)) [Bug: 1475] * library/listbox.tcl: fixed extended mode script error [Bug: 866]
Diffstat (limited to 'library/listbox.tcl')
-rw-r--r--library/listbox.tcl10
1 files changed, 7 insertions, 3 deletions
diff --git a/library/listbox.tcl b/library/listbox.tcl
index f77ecb3..d273a28 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.5 1999/04/16 01:51:26 stanton Exp $
+# RCS: @(#) $Id: listbox.tcl,v 1.6 1999/08/09 16:52:06 hobbs Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1995 Sun Microsystems, Inc.
@@ -234,10 +234,14 @@ proc tkListboxMotion {w el} {
$w selection clear 0 end
$w selection set $el
set tkPriv(listboxPrev) $el
- event generate $w <<ListboxSelect>>
+ event generate $w <<ListboxSelect>>
}
extended {
set i $tkPriv(listboxPrev)
+ if {[string equal {} $i]} {
+ set i $el
+ $w selection set $el
+ }
if {[$w selection includes anchor]} {
$w selection clear $i $el
$w selection set anchor $el
@@ -258,7 +262,7 @@ proc tkListboxMotion {w el} {
incr i -1
}
set tkPriv(listboxPrev) $el
- event generate $w <<ListboxSelect>>
+ event generate $w <<ListboxSelect>>
}
}
}