向下箭头不火的关键preSS事件箭头、关键、事件、preSS

2023-09-04 12:46:21 作者:你心是海我是鱼。

有谁知道为什么,当用户presses一个向下的箭头密钥preSS事件不会被解雇?我要寻找它的KeyDown事件。这只是东西,我做错了什么?

Does anyone know why the KeyPress Event doesn't get fired when the user presses a down arrow? I have to look for it in the KeyDown event. Is this just something that I am doing wrong?

推荐答案

根据密钥preSS事件的文件(假设你使用的WinForms):

According to the documentation of the KeyPress event (assuming you are using WinForms):

关键preSS事件不会上调   非字符键;然而,该   非字符键做提高的KeyDown   和KeyUp事件。

The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and KeyUp events.

向下箭头键不是字符键,所以这个事件不应该被上调了。

The down arrow key isn't a character key, so this event shouldn't be raised for it.