You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user