mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 03:34:17 +00:00
misc cleanup
This commit is contained in:
parent
b3cda43a0f
commit
ab22203791
13 changed files with 35 additions and 7 deletions
|
|
@ -677,7 +677,8 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2& p_screenpos,bool p_hili
|
|||
|
||||
void SpatialEditorViewport::_smouseenter() {
|
||||
|
||||
surface->grab_focus();
|
||||
if (!surface->has_focus() && (!get_focus_owner() || !get_focus_owner()->is_text_field()))
|
||||
surface->grab_focus();
|
||||
}
|
||||
|
||||
void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue