/// <summary> /// Method that handles characters entered via the keyboard. /// </summary> /// <param name="keyChar">The entered character.</param> public override bool OnChar(char keyChar) { if (focusElement != null) { focusElement.OnChar(keyChar); return(true); } return(false); }
/// <summary> /// Method that handles keyboard events. /// </summary> /// <param name="character">The character that was entered.</param> public bool OnChar(char character) { ArrayList cloned = (ArrayList)list.Clone(); for (int i = cloned.Count - 1; i >= 0; i--) { IGuiElement element = (cloned[i] as IGuiElement); if (element.Enabled && element.OnChar(character)) { return(true); } } return(false); }