mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
This function releases the focus of text fields and dropdowns.
This commit is contained in:
parent
51bb98b4d1
commit
ba3c8bdac0
@ -207,12 +207,7 @@ namespace XNodeEditor {
|
|||||||
} else if (!IsHoveringNode) {
|
} else if (!IsHoveringNode) {
|
||||||
// If click outside node, release field focus
|
// If click outside node, release field focus
|
||||||
if (!isPanning) {
|
if (!isPanning) {
|
||||||
// I've got no idea which of these do what, so we'll just reset all of it.
|
EditorGUI.FocusTextInControl(null);
|
||||||
GUIUtility.hotControl = 0;
|
|
||||||
GUIUtility.keyboardControl = 0;
|
|
||||||
EditorGUIUtility.editingTextField = false;
|
|
||||||
EditorGUIUtility.keyboardControl = 0;
|
|
||||||
EditorGUIUtility.hotControl = 0;
|
|
||||||
}
|
}
|
||||||
if (NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
if (NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user