简体   繁体   English

C#.NETCF-HTC Touch没有触发TextBox KeyPress事件

[英]C# .NETCF - HTC Touch is not firing TextBox KeyPress event

I'm facing this strange situation: I use my own "custom soft keyboard" (just some buttons placed on screen) and then I use PostKeybdMessage do send "keys" to the TextBox. 我面临这种奇怪的情况:我使用自己的“自定义软键盘”(只是一些放置在屏幕上的按钮),然后使用PostKeybdMessage确实将“键”发送到TextBox。

Everything allways worked fine, but today when I installed in a HTC Touch2 devices , the Textbox's KeyPress event is not being fired. 一切都正常,但是今天当我将其安装在HTC Touch2设备中时 ,并未触发Textbox的KeyPress事件。 In HTC devices I'm having this same "strange" behavion: KeyDown and KeyUp events are being fired, but KeyPress is missing ! 在HTC设备中,我具有相同的“奇怪”行为: 触发了KeyDown和KeyUp事件,但缺少KeyPress

Does anybody know why is this happening? 有人知道为什么会这样吗?

Regards. 问候。

Well, for those interested... 好吧,对于那些感兴趣的人...

After some hours of researching, it appears that some HTC "flavors" have a special version of auto complete that causes the keypress to be lost. 经过几个小时的研究,似乎有些HTC“味道”具有自动完成的特殊版本,这会导致按键丢失。

(see: http://webcache.googleusercontent.com/search?q=cache:vIddjM7iEloJ:forums.citrix.com/thread.jspa%3FthreadID%3D238620%26tstart%3D0+htc+touch+keypress+not+being+fired&cd=5&hl=pt-BR&ct=clnk&gl=br ). (请参阅: http : //webcache.googleusercontent.com/search?q= cache: vIddjM7iEloJ : forums.citrix.com/thread.jspa%3FthreadID%3D238620%26tstart%3D0+htc+touch+keypress+not+being+fired&cd = 5&hl = pt-BR&ct = clnk&gl = br )。

What I did was just set to the "default" windows mobile keyboard. 我所做的只是设置为“默认” Windows移动键盘。

(see: http://forum.xda-developers.com/archive/index.php/t-444641.html ) (请参阅: http : //forum.xda-developers.com/archive/index.php/t-444641.html

HKLM\\System\\CurrentControlSet\\Control\\Layouts\\e0010409 HKLM \\系统\\ CurrentControlSet \\控制\\布局\\ e0010409

  • Ime File = \\windows\\compime.dll Ime File = \\ windows \\ compime.dll
  • Layout Tex = COMP IME 版式Tex = COMP IME

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM