public override void OnGUI(Rect rect) { Event current = Event.current; if (current.type == EventType.KeyDown && current.keyCode == KeyCode.Escape) { this.editorWindow.Close(); GUIUtility.ExitGUI(); } using (GUIHelpers.Area(rect)) { using (GUIHelpers.Vertical()) { using (GUIHelpers.ScrollView(ref scroll)) { DrawList(); } if (m_footer != null) { m_footer(); } } } }