Import Tk 8.6.8

This commit is contained in:
Cheryl Sabella
2018-02-22 14:31:15 -05:00
parent b1c28856bb
commit 8e57feeeb9
193 changed files with 6172 additions and 4033 deletions

View File

@@ -170,6 +170,7 @@ bind Menu <<NextLine>> {
}
bind Menu <KeyPress> {
tk::TraverseWithinMenu %W %A
break
}
# The following bindings apply to all windows, and are used to
@@ -607,6 +608,10 @@ proc ::tk::MenuButtonDown menu {
if {![winfo viewable $menu]} {
return
}
if {[$menu index active] eq "none"} {
set Priv(window) {}
return
}
$menu postcascade active
if {$Priv(postedMb) ne "" && [winfo viewable $Priv(postedMb)]} {
grab -global $Priv(postedMb)