View Full Version : Avoiding Double KeyUp/Down Events in Safari

12-21-2005, 03:09 PM
I wrote an autocomplete library for working with tags (ala Flickr and del.icio.us) that I've GPL'ed.


The code works as designed in all browsers except Safari. For some reason up and down arrow key presses are firing twice causing the highlight bar to jump 2 suggestions. How can I avoid this?

Less of a concern, but still a problem is that a TAB press selects all of the text in the textbox so that the next key press erases existing tags. This only happens in Safari and not other browsers.

Any suggestions or tips would be highly appreciated. I'm at a loss to what try next.