mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 17:11:30 +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
|
|
@ -194,7 +194,7 @@ void CanvasItemEditor::_edit_set_pivot(const Vector2& mouse_pos) {
|
|||
|
||||
void CanvasItemEditor::_unhandled_key_input(const InputEvent& p_ev) {
|
||||
|
||||
if (!is_visible() || window_has_modal_stack())
|
||||
if (!is_visible() || get_viewport()->gui_has_modal_stack())
|
||||
return;
|
||||
if (p_ev.key.mod.control)
|
||||
// prevent to change tool mode when control key is pressed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue