mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 563291 - Selectively open tabs from session:restore "Well this is embarrassing" page. r=dao
--HG-- extra : rebase_source : 537ccc1791256a93c224ae653d07d5981f57e037
This commit is contained in:
parent
85a1e8061a
commit
28438f4b10
@ -160,9 +160,10 @@ 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 middle-clicking
|
||||
// or Ctrl+clicking on a tab's title
|
||||
if ((aEvent.button == 1 || aEvent.ctrlKey) && col.value.id == "title" &&
|
||||
// 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) &&
|
||||
col.value.id == "title" &&
|
||||
!treeView.isContainer(row.value))
|
||||
restoreSingleTab(row.value, aEvent.shiftKey);
|
||||
else if (col.value.id == "restore")
|
||||
|
Loading…
Reference in New Issue
Block a user