Revert dirty hack to make a click on an open menu close it, still some issues
This commit is contained in:
parent
ed1149edb2
commit
abc88e8819
|
|
@ -8830,17 +8830,18 @@ if { [info exists has_x]} {
|
||||||
|
|
||||||
# This is a dirty hack to make a click on an open menu close it.
|
# This is a dirty hack to make a click on an open menu close it.
|
||||||
# not guaranteed to work on future tk versions
|
# not guaranteed to work on future tk versions
|
||||||
bind Menu <Button> {
|
|
||||||
if {$tk::Priv(menuBar) ne {}} {
|
# bind Menu <Button> {
|
||||||
tk::MenuEscape %W
|
# if {$tk::Priv(menuBar) ne {}} {
|
||||||
set Priv(menuBar) {}
|
# tk::MenuEscape %W
|
||||||
set Priv(focus) {}
|
# set Priv(menuBar) {}
|
||||||
unset -nocomplain Priv(menuActivated)
|
# set Priv(focus) {}
|
||||||
%W activate none
|
# unset -nocomplain Priv(menuActivated)
|
||||||
} else {
|
# %W activate none
|
||||||
tk::MenuButtonDown %W
|
# } else {
|
||||||
}
|
# tk::MenuButtonDown %W
|
||||||
}
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
set OS [lindex $tcl_platform(os) 0]
|
set OS [lindex $tcl_platform(os) 0]
|
||||||
set env(LC_ALL) C
|
set env(LC_ALL) C
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue