Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Container.cs
/// <summary>
/// Override this message to handle key events internally.
/// </summary>
/// <param name="key">Integer value of the key affected</param>
/// <param name="pressed">True if the key is currently being pressed; false if released</param>
/// <param name="handled">true if the event is handled. Set to true if handled.</param>
/// <remarks>
/// Override handles moving focus between child on key input by tab key
/// </remarks>
Override this message to handle key events internally.
Override this message to handle key events internally .
protected override void KeyboardKeyMessage(char key, bool pressed, ref bool handled)
      {
         if (!handled)
         {
            if (pressed)
            {
               if (key == 9)
               {
                  if (Core.KeyboardShiftDown)
                  {
                     PreviousChild();
                  }
                  else
                  {
                     NextChild();
                  }
                  return;
               }
            }
         }
         base.KeyboardKeyMessage(key, pressed, ref handled);
      }
protected override void KeyboardKeyMessage ( char key , bool pressed , ref bool handled ) { if ( ! handled ) { if ( pressed ) { if ( key == 9 ) { if ( Core . KeyboardShiftDown ) { PreviousChild ( ) ; } else { NextChild ( ) ; } return ; } } } base . KeyboardKeyMessage ( key , pressed , ref handled ) ; }
Override this message to handle key events internally.
Override this message to handle key events internally .
key
char
Integer value of the key affected
Integer value of the key affected
pressed
bool
True if the key is currently being pressed; false if released
True if the key is currently being pressed ; false if released
bool
ref
handled
true if the event is handled. Set to true if handled.
true if the event is handled . Set to true if handled .
remarks
Override handles moving focus between child on key input by tab key
Override handles moving focus between child on key input by tab key