Ticket #1484556 (closed Bugs: worksforme)

Opened 16 months ago

Last modified 14 months ago

Using arrow keys to navigate in Safari causes window to scroll

Reported by: llamaguy Owned by:
Priority: 3 Milestone: 0.1-stable
Component: Interface Version: svn-trunk
Severity: minor Keywords:
Cc:

Description

If you go to a folder with more than a page of messages and use the arrow keys to move the red bar up and down the window will scroll with it. I've fixed it locally here:

Index: program/js/list.js
===================================================================
--- program/js/list.js  (revision 782)
+++ program/js/list.js  (working copy)
@@ -531,7 +531,7 @@
   {
     case 40:
     case 38: 
-      return this.use_arrow_key(keyCode, mod_key);
+      return this.use_arrow_key(keyCode, mod_key, e);
       break;
 
     default:
@@ -546,7 +546,7 @@
 /**
  * Special handling method for arrow keys
  */
-use_arrow_key: function(keyCode, mod_key)
+use_arrow_key: function(keyCode, mod_key, event)
 {
   var new_row;
   if (keyCode == 40) // down arrow key pressed
@@ -560,6 +560,10 @@
     this.scrollto(new_row.uid);
   }
 
+  if (event.preventDefault)
+  {
+    event.preventDefault();
+  }
   return false;
 },
 

Change History

Changed 15 months ago by thomasb

  • milestone set to 0.1-stable

Changed 14 months ago by robin

  • status changed from new to closed
  • resolution set to worksforme

I cannot reproduce this in r909. Not with Safari 2.0.4 on Mac, not with Safari 3.0.3 on Windows.

Note: See TracTickets for help on using tickets.