Author Topic: Safari Double-scrolling (and how to solve it)  (Read 2821 times)

Offline jediknil

  • Newbie
  • *
  • Posts: 2
Safari Double-scrolling (and how to solve it)
« on: March 17, 2007, 09:02:49 PM »
In Safari (and apparently, only Safari), there is a bug that causes the keydown event to fire twice when pressing one of the arrow keys. This means that in the message and contact lists, the selection skips a row when you press the Up or Down keys.

A post on another forum discovered with a search explains that Safari is propogating the event twice, using two different DOM schemes.

The solution is to use preventDefault() on arrow key events. Strangely enough, this is already in place for the autocompletion keydown handler, but not the list keydown handler. Find the black line in program/js/list.js and add the two red lines before it.

Quote from: program/js/list.js
  if (e.preventDefault)
    e.preventDefault();

   return this.use_arrow_key(keyCode, mod_key);

Now you can scroll through the message and contact lists with the arrow keys!

Unfixed as of list.js revision 344.