private void KeyboardHandling(EditorWindow editorWindow)
{
Event current = Event.current;
if (current.type == EventType.KeyDown)
{
switch (current.keyCode)
{
case KeyCode.KeypadEnter:
case KeyCode.Return:
this.CreateLibraryAndCloseWindow(editorWindow);
break;
case KeyCode.Escape:
editorWindow.Close();
break;
}
}
}