public override bool HandlesKeyDown(Key key)
 {
     RemoveOverwriteButton();
     if (key == Key.Escape)
     {
         game.SetNewScreen(null);
         return(true);
     }
     return(inputWidget.HandlesKeyDown(key));
 }
Ejemplo n.º 2
0
 public override bool HandlesKeyDown(Key key)
 {
     if (key == Key.Escape)
     {
         game.SetNewScreen(null);
         return(true);
     }
     return(selectedWidget == null ? (key < Key.F1 || key > Key.F35) :
            selectedWidget.HandlesKeyDown(key));
 }
 public override bool HandlesKeyDown(Key key)
 {
     if (key == Key.Escape)
     {
         game.SetNewScreen(null);
         return(true);
     }
     else if ((key == Key.Enter || key == Key.KeypadEnter) &&
              inputWidget != null)
     {
         ChangeSetting();
         return(true);
     }
     if (inputWidget == null)
     {
         return(key < Key.F1 || key > Key.F35);
     }
     return(inputWidget.HandlesKeyDown(key));
 }