summaryrefslogtreecommitdiffstats
path: root/library/entry.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-28 11:34:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-28 11:34:38 (GMT)
commit999562c37287db5357449856924deb4ec78cef1a (patch)
treec77a6ed7edb5a23bd4a582adbd6ba1ee58458708 /library/entry.tcl
parent328e394531084d697d4dbf9296a253e8a10dee36 (diff)
parent64ef8f9af569b1fd6d2dc992851976042391fa72 (diff)
downloadtk-999562c37287db5357449856924deb4ec78cef1a.zip
tk-999562c37287db5357449856924deb4ec78cef1a.tar.gz
tk-999562c37287db5357449856924deb4ec78cef1a.tar.bz2
Merge 8.7
Diffstat (limited to 'library/entry.tcl')
-rw-r--r--library/entry.tcl9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/entry.tcl b/library/entry.tcl
index 2090fa7..bff426c 100644
--- a/library/entry.tcl
+++ b/library/entry.tcl
@@ -596,7 +596,8 @@ proc ::tk::EntryTranspose w {
# start - Position at which to start search.
proc ::tk::EntryNextWord {w start} {
- if {[$w cget -show] ne ""} {
+ # the check on [winfo class] is because the spinbox also uses this proc
+ if {[winfo class $w] eq "Entry" && [$w cget -show] ne ""} {
return end
}
set pos [tk::endOfWord [$w get] [$w index $start]]
@@ -618,7 +619,8 @@ proc ::tk::EntryNextWord {w start} {
# start - Position at which to start search.
proc ::tk::EntrySelectNextWord {w start} {
- if {[$w cget -show] ne ""} {
+ # the check on [winfo class] is because the spinbox also uses this proc
+ if {[winfo class $w] eq "Entry" && [$w cget -show] ne ""} {
return end
}
set pos [tk::endOfWord [$w get] [$w index $start]]
@@ -638,7 +640,8 @@ proc ::tk::EntrySelectNextWord {w start} {
# start - Position at which to start search.
proc ::tk::EntryPreviousWord {w start} {
- if {[$w cget -show] ne ""} {
+ # the check on [winfo class] is because the spinbox also uses this proc
+ if {[winfo class $w] eq "Entry" && [$w cget -show] ne ""} {
return 0
}
set pos [tk::startOfPreviousWord [$w get] [$w index $start]]