Fix in UIMenuBar (reverted back a recent change).

This commit is contained in:
Martín Lucas Golini
2025-07-11 18:14:42 -03:00
parent fa5aa4d006
commit 93872867d5
2 changed files with 1 additions and 2 deletions

View File

@@ -334,8 +334,6 @@ Uint32 UIMenuBar::onMessage( const NodeMessage* msg ) {
Node* focusNode = getEventDispatcher()->getFocusNode();
if ( !isParentOf( focusNode ) && !isPopUpMenuChild( focusNode ) ) {
onWidgetFocusLoss();
if ( mCurrentMenu && mCurrentMenu->isVisible() )
mCurrentMenu->hide();
}
return 1;
}

View File

@@ -50,6 +50,7 @@ SyntaxDefinition& addZig() {
{ "callconv", "keyword" },
{ "test", "keyword" },
{ "f32", "type" },
{ "f80", "type" },
{ "const", "keyword" },
{ "union", "keyword" },
{ "nosuspend", "keyword" },