mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Press Esc to close and cancel RenamePopup
This commit is contained in:
parent
c2a99ba2b5
commit
1d30c43e17
@ -1,4 +1,4 @@
|
||||
using UnityEditor;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace XNodeEditor {
|
||||
@ -67,6 +67,10 @@ namespace XNodeEditor {
|
||||
target.TriggerOnValidate();
|
||||
}
|
||||
}
|
||||
|
||||
if (e.isKey && e.keyCode == KeyCode.Escape) {
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user