Bug 953295 Arrow keys don't work in restore session page r=Ratty
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Mon, 06 Jan 2014 00:29:31 +0000
changeset 17254 08b8cae1f27e6e959e0819864fe58d4df853705e
parent 17253 ff2f997e1b3233e398555cef67228ee616ed95af
child 17255 4b1338309c260cf48cb300ac019f5e85dc1e7e97
push id1103
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 07:44:06 +0000
treeherdercomm-beta@50c6279a0af0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty
bugs953295
Bug 953295 Arrow keys don't work in restore session page r=Ratty a=IanN 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