Shaikh Sonny Aman’s Blog

previously www.mailtoaman.com

safari jquery keypress event bind problem for arrow key!

Posted on | November 21, 2008 |

Its a little post just to share with you that today I was working on keyboard navigation with javascript. Surprisingly the arrow keys was not working at all while using $(document).keypress(function(event){alert(’in here’)}) on Safari browser! Even the alert was not firing up!!

Anyway, for this you need to use $(document).keyup solved the problem :)

Check the demo is not working with Safari even on the jquery site :)
http://docs.jquery.com/Events/keypress#fn

Comments

One Response to “safari jquery keypress event bind problem for arrow key!”

  1. Ahsan
    November 22nd, 2008 @ 5:07 pm

    interesting find :)

Leave a Reply