mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +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) {
|
||||
// If click outside node, release field focus
|
||||
if (!isPanning) {
|
||||
// I've got no idea which of these do what, so we'll just reset all of it.
|
||||
GUIUtility.hotControl = 0;
|
||||
GUIUtility.keyboardControl = 0;
|
||||
EditorGUIUtility.editingTextField = false;
|
||||
EditorGUIUtility.keyboardControl = 0;
|
||||
EditorGUIUtility.hotControl = 0;
|
||||
EditorGUI.FocusTextInControl(null);
|
||||
}
|
||||
if (NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user