mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00:00
-Moved all the "root" input handling for GUI from individual Controls to Viewport.
-Should fix several reported bugs when controls don't have a common parent This may have added new bugs, so please report if so!
This commit is contained in:
parent
4081829923
commit
72fcb8a35b
10 changed files with 1156 additions and 1017 deletions
|
|
@ -3529,7 +3529,7 @@ void SpatialEditor::_instance_scene() {
|
|||
|
||||
void SpatialEditor::_unhandled_key_input(InputEvent p_event) {
|
||||
|
||||
if (!is_visible() || window_has_modal_stack())
|
||||
if (!is_visible() || get_viewport()->gui_has_modal_stack())
|
||||
return;
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue