summaryrefslogtreecommitdiffstats
path: root/library/ttk
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/ttk
parent328e394531084d697d4dbf9296a253e8a10dee36 (diff)
parent64ef8f9af569b1fd6d2dc992851976042391fa72 (diff)
downloadtk-999562c37287db5357449856924deb4ec78cef1a.zip
tk-999562c37287db5357449856924deb4ec78cef1a.tar.gz
tk-999562c37287db5357449856924deb4ec78cef1a.tar.bz2
Merge 8.7
Diffstat (limited to 'library/ttk')
-rw-r--r--library/ttk/entry.tcl9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl
index b01e6a2..66b2efd 100644
--- a/library/ttk/entry.tcl
+++ b/library/ttk/entry.tcl
@@ -253,7 +253,8 @@ proc ttk::entry::See {w {index insert}} {
# end-of-word position after a given position in the text.
#
proc ttk::entry::NextWord {w start} {
- if {[$w cget -show] ne ""} {
+ # the check on [winfo class] is because the spinbox and combobox also use this proc
+ if {[winfo class $w] eq "TEntry" && [$w cget -show] ne ""} {
return end
}
variable State
@@ -272,7 +273,8 @@ proc ttk::entry::NextWord {w start} {
# position in the text.
#
proc ttk::entry::SelectNextWord {w start} {
- if {[$w cget -show] ne ""} {
+ # the check on [winfo class] is because the spinbox and combobox also use this proc
+ if {[winfo class $w] eq "TEntry" && [$w cget -show] ne ""} {
return end
}
variable State
@@ -286,7 +288,8 @@ proc ttk::entry::SelectNextWord {w start} {
## PrevWord -- Find the previous word position.
#
proc ttk::entry::PrevWord {w start} {
- if {[$w cget -show] ne ""} {
+ # the check on [winfo class] is because the spinbox and combobox also use this proc
+ if {[winfo class $w] eq "TEntry" && [$w cget -show] ne ""} {
return 0
}
set pos [tk::startOfPreviousWord [$w get] [$w index $start]]