0

I been building apk for android device,

now I want to detect, when the user press enter key or search key on keyboard

also I interesting for the other devices like IOS and WinPhone .

If you have some example, I appreciate it

4

1 回答 1

0

这是我自己的问题的一些解决方案。

您可以尝试使用 JQuery 解决方案:

jQuery( document ).on( "keypress", "#IdSender", function(evt){
     var keycode = evt.keyCode || evt.which;
     alert("KeyCode: " + keycode);
});
于 2013-10-02T23:48:03.843 回答