diff --git a/browser/components/sessionstore/content/aboutSessionRestore.js b/browser/components/sessionstore/content/aboutSessionRestore.js index 45ac894b4358..e8f2e2a7cff1 100644 --- a/browser/components/sessionstore/content/aboutSessionRestore.js +++ b/browser/components/sessionstore/content/aboutSessionRestore.js @@ -160,9 +160,14 @@ function onListClick(aEvent) { var row = {}, col = {}; treeView.treeBox.getCellAt(aEvent.clientX, aEvent.clientY, row, col, {}); if (col.value) { - // restore this specific tab in the same window for double clicking or middle clicking - // or Ctrl+clicking on a tab's title - note: ctrl clicking doesn't work on Mac - if ((aEvent.button == 1 || aEvent.button == 0 && aEvent.detail == 2 || aEvent.ctrlKey) && + // Restore this specific tab in the same window for middle/double/accel clicking + // on a tab's title. +#ifdef XP_MACOSX + let accelKey = aEvent.metaKey; +#else + let accelKey = aEvent.ctrlKey; +#endif + if ((aEvent.button == 1 || aEvent.button == 0 && aEvent.detail == 2 || accelKey) && col.value.id == "title" && !treeView.isContainer(row.value)) restoreSingleTab(row.value, aEvent.shiftKey); diff --git a/browser/components/sessionstore/content/aboutSessionRestore.xhtml b/browser/components/sessionstore/content/aboutSessionRestore.xhtml index 7175b53b04fe..26b404f7c002 100644 --- a/browser/components/sessionstore/content/aboutSessionRestore.xhtml +++ b/browser/components/sessionstore/content/aboutSessionRestore.xhtml @@ -54,7 +54,7 @@ -