We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d9a797 + 4c8f8e6 commit dedb2ffCopy full SHA for dedb2ff
platform/macos/godot_menu_delegate.mm
@@ -102,7 +102,11 @@ - (BOOL)menuHasKeyEquivalent:(NSMenu *)menu forEvent:(NSEvent *)event target:(id
102
} else {
103
// Otherwise redirect event to the engine.
104
if (DisplayServer::get_singleton()) {
105
- [[[NSApplication sharedApplication] keyWindow] sendEvent:event];
+ if ([[NSApplication sharedApplication] keyWindow].sheet) {
106
+ [[[[NSApplication sharedApplication] keyWindow] sheetParent] sendEvent:event];
107
+ } else {
108
+ [[[NSApplication sharedApplication] keyWindow] sendEvent:event];
109
+ }
110
}
111
112
0 commit comments