From 3d52135c3200fb2ac393404e0b106839fdac97c7 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 20 Sep 2020 16:06:03 +0000 Subject: Fix [d91e05bf20]: text widget will not process a <> when disabled --- library/text.tcl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/text.tcl b/library/text.tcl index 0fa37e7..ec8f3d3 100644 --- a/library/text.tcl +++ b/library/text.tcl @@ -571,12 +571,7 @@ proc ::tk::TextButton1 {w x y} { } else { $w mark gravity $anchorname left } - # Allow focus in any case on Windows, because that will let the - # selection be displayed even for state disabled text widgets. - if {[tk windowingsystem] eq "win32" \ - || [$w cget -state] eq "normal"} { - focus $w - } + focus $w if {[$w cget -autoseparators]} { $w edit separator } -- cgit v0.12