WP8 : IExplorer 10 : on “keyup” event not firing for “RETURN” key

被刻印的时光 ゝ 提交于 2019-12-08 01:54:24

问题


I've just came across this interesting problem, or probably it's just me missing something very basic (hopefully). The problem is, that the keyup event is not firing for the return key in the WP8 browser, whereas all the other standard keys are firing this event up. I've tested this on the desktop, and IE10 is not having any issues with this, the event fires up nicely.

Can anyone else confirm that on their WP8 devices the keyup event is not being triggered for the "return" key ?

/using dojo syntax here/

 on(dom.byId("testinput1"), "keyup", function(evt){
    dom.byId("result1").innerHTML = "";
     if (evt.keyCode == keys.ENTER)
         dom.byId("result1").innerHTML = "ENTER pressed.";
});

Here is the jsfiddle link

  • open it in IE10 -> no problem for both of the input boxes
  • open it in WP8 browser (IE10) -> the first input box wont trigger keyup for the return key

Thanks for all your help.

来源:https://stackoverflow.com/questions/19027624/wp8-iexplorer-10-on-keyup-event-not-firing-for-return-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!