/// <summary> Handle the KeyRelease event. </summary> /// <param name="e"> The event data. <see cref="XrwKeyEvent"/> </param> /// <remarks> Set XrwKeyEvent. Set result to nonzero to stop further event processing. </remarks> public virtual void OnKeyRelease(XrwKeyEvent e) { KeyReleaseDelegate keyRelease = KeyRelease; if (keyRelease != null) { keyRelease(this, e); } }
/// <summary> Handle the KeyPress event. </summary> /// <param name="e"> The event data. <see cref="XrwKeyEvent"/> </param> /// <remarks> Set XrwKeyEvent. Set result to nonzero to stop further event processing. </remarks> public virtual void OnKeyPress(XrwKeyEvent e) { KeyPressDelegate keyPress = KeyPress; if (keyPress != null) { keyPress(this, e); } }