public bool HasFocus()
        {
            bool flag = (!(this.m_GUIView != null)) ? EditorGUIUtility.HasCurrentWindowKeyFocus() : this.m_GUIView.hasFocus;

            return(flag && GUIUtility.keyboardControl == this.m_KeyboardControlID);
        }
Exemple #2
0
 internal static bool HasCurrentWindowKeyFocus()
 {
     return(EditorGUIUtility.HasCurrentWindowKeyFocus());
 }
 public bool HasKeyboardControl()
 {
     return(GUIUtility.keyboardControl == id && EditorGUIUtility.HasCurrentWindowKeyFocus());
 }