Detecting the user pressing F10 in WPF

前端 未结 4 1693
迷失自我
迷失自我 2021-01-03 22:40

My WPF application has behaviour triggered by the functions keys (F1-F12).

My code is along these lines:

private void Window_Ke         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 23:16

    F10 launches the window menu. It's the same in all Windows apps.

    It seems that Key.System is the expected value for the F10 key.

提交回复
热议问题