private static bool TextEditorHandleEvent(UnityEngine.Event e, TextEditor te) { bool flag; EventModifiers eventModifier = e.modifiers; if ((eventModifier & EventModifiers.CapsLock) != EventModifiers.CapsLock) { return(UIUnityEvents.TextEditorHandleEvent2(e, te)); } try { e.modifiers = eventModifier & (EventModifiers.Shift | EventModifiers.Control | EventModifiers.Alt | EventModifiers.Command | EventModifiers.Numeric | EventModifiers.FunctionKey); flag = UIUnityEvents.TextEditorHandleEvent2(e, te); } finally { e.modifiers = eventModifier; } return(flag); }