我只关注WPF中的上下左右键盘。而且,我不希望发生其他关键事件。参考下面的代码,如何分配或设置其他键为空/dbnull?我得到了错误e.Key = Nothing
Private Sub Button1_KeyUp(sender As Object, e As KeyEventArgs) Handles Button1.KeyUp
Select Case e.Key
Case Key.Right
Keyboard.Focus(Button2)
Case Key.Down
Keyboard.Focus(Button3)
Case Else
e.Key = Nothing
End Select
End Sub