1
0
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:
Romain Théry 2020-04-27 15:58:55 +02:00
parent c2a99ba2b5
commit 1d30c43e17

View File

@ -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();
}
}
}
}