mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Merge pull request #78029 from bruvzg/macos_fix_popup_ime_focus
[macOS] Fix IME focus in popup windows.
This commit is contained in:
commit
a5a23678c4
@ -2338,7 +2338,7 @@ void DisplayServerMacOS::show_window(WindowID p_id) {
|
||||
popup_open(p_id);
|
||||
if ([wd.window_object isMiniaturized]) {
|
||||
return;
|
||||
} else if (wd.no_focus || wd.is_popup) {
|
||||
} else if (wd.no_focus) {
|
||||
[wd.window_object orderFront:nil];
|
||||
} else {
|
||||
[wd.window_object makeKeyAndOrderFront:nil];
|
||||
@ -2972,7 +2972,7 @@ void DisplayServerMacOS::window_set_flag(WindowFlags p_flag, bool p_enabled, Win
|
||||
if ([wd.window_object isVisible]) {
|
||||
if ([wd.window_object isMiniaturized]) {
|
||||
return;
|
||||
} else if (wd.no_focus || wd.is_popup) {
|
||||
} else if (wd.no_focus) {
|
||||
[wd.window_object orderFront:nil];
|
||||
} else {
|
||||
[wd.window_object makeKeyAndOrderFront:nil];
|
||||
|
@ -342,7 +342,7 @@
|
||||
}
|
||||
|
||||
DisplayServerMacOS::WindowData &wd = ds->get_window(window_id);
|
||||
return !wd.no_focus && !wd.is_popup;
|
||||
return !wd.no_focus;
|
||||
}
|
||||
|
||||
- (BOOL)acceptsFirstResponder {
|
||||
|
@ -65,7 +65,7 @@
|
||||
}
|
||||
|
||||
DisplayServerMacOS::WindowData &wd = ds->get_window(window_id);
|
||||
return !wd.no_focus && !wd.is_popup;
|
||||
return !wd.no_focus;
|
||||
}
|
||||
|
||||
- (BOOL)canBecomeMainWindow {
|
||||
|
Loading…
Reference in New Issue
Block a user