Search code examples
c#wpfvb.netnavigationkeyeventargs

KeyEventArgs Shift + TAB


I'd like to create the KeyEvent "SHIFT + TAB" using this method for navigation. How can I set the Shift Key as Modifier?

Dim args As New System.Windows.Input.KeyEventArgs(Keyboard.PrimaryDevice, Keyboard.PrimaryDevice.ActiveSource, 0, Key.Tab)
args.RoutedEvent = Keyboard.KeyDownEvent
InputManager.Current.ProcessInput(args)

Thanks!


Solution

  • What worked for me was that I had to override the ProvideCommandsForKey function of the DefaultKeyboardCommandProvider to create the List of commands that Shift + Tab would do.

    http://docs.telerik.com/devtools/wpf/controls/radgridview/commands/KeyboardCommandProvider