HandleTab
Introduction
Code Example - Tabbing to the Next Button
// assume MyButton has focus:
var keyboard = InputManager.Keyboard;
if(keyboard.KeyPushed(Keys.Down) ||
keyboard.KeyPushed(Keys.W) )
{
MyButton.HandleTab(TabDirection.Down);
}
if(keyboard.KeyPushed(Keys.Up) ||
keyboard.KeyPushed(Keys.S))
{
MyButton.HandleTab(TabDirection.Down);
}var keyboard = InputManager.Keyboard;
if (keyboard.KeyPushed(Keys.Up) ||
keyboard.KeyPushed(Keys.W) )
{
(InputManager.InputReceiver as FrameworkElement)?.HandleTab(TabDirection.Up);
}
if (keyboard.KeyPushed(Keys.Down) ||
keyboard.KeyPushed(Keys.S))
{
(InputManager.InputReceiver as FrameworkElement)?.HandleTab(TabDirection.Down);
}Last updated
Was this helpful?