Skip to content

Commit 5816cbe

Browse files
iTris666GitHub Enterprise
authored andcommitted
Fix position of block creation window (#72)
1 parent 54114d9 commit 5816cbe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

com.unity.visualeffectgraph/Editor/FilterPopup/VFXFilterWindow.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ private static object Invoke(Type t, object inst, string method, params object[]
208208
return mi.Invoke(inst, args);
209209
}
210210

211+
void OnLostFocus()
212+
{
213+
EditorGUI.EndEditingActiveTextField();
214+
Close();
215+
}
216+
211217
void Init(Vector2 graphPosition, Vector2 screenPosition, IProvider provider)
212218
{
213219
m_Provider = provider;
@@ -289,6 +295,7 @@ internal void OnGUI()
289295

290296
if (m_Tree == null)
291297
{
298+
EditorGUI.EndEditingActiveTextField();
292299
Close();
293300
return;
294301
}
@@ -398,6 +405,7 @@ private void HandleKeyboard()
398405
}
399406
if (evt.keyCode == KeyCode.Escape)
400407
{
408+
EditorGUI.EndEditingActiveTextField();
401409
Close();
402410
evt.Use();
403411
}
@@ -554,6 +562,7 @@ private void GoToChild(Element e, bool addIfComponent)
554562
{
555563
if (m_Provider.GoToChild(e, addIfComponent))
556564
{
565+
EditorGUI.EndEditingActiveTextField();
557566
Close();
558567
if (m_mainWindow != null)
559568
{

0 commit comments

Comments
 (0)