android - Samsung Gingerbread stock browser doesn't fire keypress on enter -


so having issue samsung gingerbread stock browser not firing keypress events on dom elements.

specifically have input field , keypress listener on it. when user types litter keypress function triggered correctly when press enter key no event fired.

i have tested textarea elements , same thing.

this appears specific samsung browser have tested on nexus 1 , works fine.

html code:

<input type="text" class = "textarea commenttextinput" name="newcomment" placeholder="enter comment here"></input> 

javascript code(i using zepto identical jquery)

$(".commenttextinput", this.el).keyup(     function(e) {         console.log("key pressed" + e.which);     } ); 

any ideas causing this/how fix it?


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -