mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge pull request #97678 from bruvzg/fix_nd_menu
[macOS] Fix menu crash when used from opened native dialog.
This commit is contained in:
@@ -102,7 +102,11 @@
|
||||
} else {
|
||||
// Otherwise redirect event to the engine.
|
||||
if (DisplayServer::get_singleton()) {
|
||||
[[[NSApplication sharedApplication] keyWindow] sendEvent:event];
|
||||
if ([[NSApplication sharedApplication] keyWindow].sheet) {
|
||||
[[[[NSApplication sharedApplication] keyWindow] sheetParent] sendEvent:event];
|
||||
} else {
|
||||
[[[NSApplication sharedApplication] keyWindow] sendEvent:event];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user