1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Spatial/Canvas Editor: Ignore unhandled input if there is a dialog

This commit is contained in:
Ignacio Etcheverry
2016-01-15 11:37:45 +01:00
parent ccbf8b42f4
commit e187762c2d
2 changed files with 3 additions and 3 deletions

View File

@@ -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())
if (!is_visible() || window_has_modal_stack())
return;
if (p_ev.key.mod.control)
// prevent to change tool mode when control key is pressed