Exemplo n.º 1
0
 /// <summary>
 /// Local KeyUp event handler. This function should inject this event
 /// to any components that check for input.
 /// </summary>
 /// <param name="e">Key event arguments</param>
 public override bool injectKeyUp(KeyEventArgs e)
 {
     return _user.injectKeyUp(e);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Does nothing, override to handle event.
 /// </summary>
 /// <param name="args">Key event arguments.</param>
 protected virtual void OnKeyUp(KeyEventArgs args)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Receives all KeyUp events, and checks if control is focused and
 /// should receive event.
 /// </summary>
 /// <param name="args">Key event arguments.</param>
 protected virtual void KeyUpIntercept(KeyEventArgs args)
 {
     if (this.Visible)
     {
         if (this.guiManager.GetFocus() == this)
             KeyUp.Invoke(args);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Does nothing, override to handle event.
 /// </summary>
 /// <param name="args">Key event arguments.</param>
 protected virtual void OnKeyDown(KeyEventArgs args)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// KeyUp input event handler function.
 /// </summary>
 /// <param name="e">KeyEvent arguments.</param>
 /// <returns>True if handled.</returns>
 public virtual bool injectKeyUp(KeyEventArgs e)
 {
     return false;
 }