向下箭头不火的关键preSS事件 [英] Down Arrows doesn't fire KeyPress Event
本文介绍了向下箭头不火的关键preSS事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道为什么,当用户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.
这篇关于向下箭头不火的关键preSS事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文