You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Fix menu keyboard and controller navigation.
This commit is contained in:
@@ -2111,6 +2111,14 @@ bool Window::has_focus() const {
|
||||
return focused;
|
||||
}
|
||||
|
||||
bool Window::has_focus_or_active_popup() const {
|
||||
ERR_READ_THREAD_GUARD_V(false);
|
||||
if (window_id != DisplayServer::INVALID_WINDOW_ID) {
|
||||
return DisplayServer::get_singleton()->window_is_focused(window_id) || (DisplayServer::get_singleton()->window_get_active_popup() == window_id);
|
||||
}
|
||||
return focused;
|
||||
}
|
||||
|
||||
void Window::start_drag() {
|
||||
ERR_MAIN_THREAD_GUARD;
|
||||
if (window_id != DisplayServer::INVALID_WINDOW_ID) {
|
||||
|
||||
Reference in New Issue
Block a user