click on posted menu will unpost it. Now no more Motion event is needed to repost again the menu by another click
This commit is contained in:
parent
ee0de61220
commit
f824f26c4f
|
|
@ -8880,6 +8880,8 @@ if {$text_replace_selection && $OS != "Windows"} {
|
|||
bind Menu <Button> {
|
||||
if { [%W cget -type] eq "menubar" && [info exists tk::Priv(menuActivated)]} {
|
||||
%W activate none
|
||||
} else {
|
||||
%W activate @%x,%y
|
||||
}
|
||||
tk::MenuButtonDown %W
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue