Bug 953295 Arrow keys don't work in restore session page r=Ratty a=Ratty
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Fri, 21 Feb 2014 00:07:17 +0000
changeset 17021 35e135d6fdea7780b6c8fdd91e82410bc0afcb75
parent 17020 d0209127ef8e11a69283450c9bc9a0ef4ef87181
child 17022 88845c3a4bafd785e59c8740c0339f952743823a
push id1083
push userneil@parkwaycc.co.uk
push dateFri, 21 Feb 2014 00:07:24 +0000
treeherdercomm-beta@35e135d6fdea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, Ratty
bugs953295
Bug 953295 Arrow keys don't work in restore session page r=Ratty a=Ratty a=Callek for checkin to a CLOSED TREE
suite/common/aboutSessionRestore.js
--- a/suite/common/aboutSessionRestore.js
+++ b/suite/common/aboutSessionRestore.js
@@ -139,24 +139,16 @@ function onListKeyDown(aEvent) {
   case KeyEvent.DOM_VK_SPACE:
     toggleRowChecked(document.getElementById("tabList").currentIndex);
     break;
   case KeyEvent.DOM_VK_RETURN:
     var ix = document.getElementById("tabList").currentIndex;
     if (aEvent.ctrlKey && !treeView.isContainer(ix))
       restoreSingleTab(ix, aEvent.shiftKey);
     break;
-  case KeyEvent.DOM_VK_UP:
-  case KeyEvent.DOM_VK_DOWN:
-  case KeyEvent.DOM_VK_PAGE_UP:
-  case KeyEvent.DOM_VK_PAGE_DOWN:
-  case KeyEvent.DOM_VK_HOME:
-  case KeyEvent.DOM_VK_END:
-    aEvent.preventDefault(); // else the page scrolls unwantedly
-    break;
   }
 }
 
 // Helper functions
 
 function getBrowserWindow() {
   return window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation)
                .QueryInterface(Components.interfaces.nsIDocShellTreeItem).rootTreeItem