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:
stefan schippers 2025-01-04 12:39:22 +01:00
parent ee0de61220
commit f824f26c4f
1 changed files with 2 additions and 0 deletions

View File

@ -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
}