Tinkr2/4.2/AphelionCore/AphelionCommonControls/Controls/Checkbox.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>
/// Toggles the checked value on return key (key == 10)
/// </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 (key == 10)
         {
            Value = !_checked;
         }
         base.KeyboardKeyMessage(key, pressed, ref handled);
      }
protected override void KeyboardKeyMessage ( char key , bool pressed , ref bool handled ) { if ( key == 10 ) { Value = ! _checked ; } 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
<not_specific>
handled
<not_specific>
true if the event is handled. Set to true if handled.
true if the event is handled . Set to true if handled .
remarks
Toggles the checked value on return key (key == 10)
Toggles the checked value on return key ( key == 10 )