Fix imported build of Tcl/Tk 8.6.11 (previous version was actually 8.6.10)
This commit is contained in:
@@ -429,14 +429,27 @@ bind Text <Control-h> {
|
||||
%W see insert
|
||||
}
|
||||
}
|
||||
bind Text <2> {
|
||||
if {!$tk_strictMotif} {
|
||||
tk::TextScanMark %W %x %y
|
||||
if {[tk windowingsystem] ne "aqua"} {
|
||||
bind Text <2> {
|
||||
if {!$tk_strictMotif} {
|
||||
tk::TextScanMark %W %x %y
|
||||
}
|
||||
}
|
||||
}
|
||||
bind Text <B2-Motion> {
|
||||
if {!$tk_strictMotif} {
|
||||
tk::TextScanDrag %W %x %y
|
||||
bind Text <B2-Motion> {
|
||||
if {!$tk_strictMotif} {
|
||||
tk::TextScanDrag %W %x %y
|
||||
}
|
||||
}
|
||||
} else {
|
||||
bind Text <3> {
|
||||
if {!$tk_strictMotif} {
|
||||
tk::TextScanMark %W %x %y
|
||||
}
|
||||
}
|
||||
bind Text <B3-Motion> {
|
||||
if {!$tk_strictMotif} {
|
||||
tk::TextScanDrag %W %x %y
|
||||
}
|
||||
}
|
||||
}
|
||||
set ::tk::Priv(prevPos) {}
|
||||
@@ -558,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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user