[Pkg-mozext-commits] [tabmixplus] 33/51: New shortcut 'Switch to last active tab'
David Prévot
taffit at moszumanska.debian.org
Mon Feb 2 18:36:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 80b12ba1c53151c739ccd08f12b2d1ceff9fff0c
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Jan 7 20:11:40 2015 +0200
New shortcut 'Switch to last active tab'
---
chrome/content/click/click.js | 3 +++
chrome/content/preferences/menu.xul | 1 +
modules/Shortcuts.jsm | 1 +
3 files changed, 5 insertions(+)
diff --git a/chrome/content/click/click.js b/chrome/content/click/click.js
index a8ab6c5..009a149 100644
--- a/chrome/content/click/click.js
+++ b/chrome/content/click/click.js
@@ -279,6 +279,9 @@ var TabmixTabClickOptions = {
else
gBrowser.pinTab(aTab);
break;
+ case 32:
+ gBrowser.previousTab(gBrowser.selectedTab);
+ break;
default:
return false;
}
diff --git a/chrome/content/preferences/menu.xul b/chrome/content/preferences/menu.xul
index c0d31fc..9c122e1 100644
--- a/chrome/content/preferences/menu.xul
+++ b/chrome/content/preferences/menu.xul
@@ -317,6 +317,7 @@
<shortcut id="ucatab" label="&clicktab.ucatab;"/>
<shortcut id="saveWindow" label="&saveWindow.label;"/>
<shortcut id="saveSession" label="&saveAllWindows.label;"/>
+ <shortcut id="switchToLast" label="Switch to last active tab"/>
<shortcut id="toggleFLST" label="&shortcuts.toggleFLST;"
tooltiptext="&shortcuts.toggleFLST.tooltip;"/>
<shortcut id="slideShow" label="&shortcuts.slideshow;"
diff --git a/modules/Shortcuts.jsm b/modules/Shortcuts.jsm
index 0bcca48..39fd9a5 100644
--- a/modules/Shortcuts.jsm
+++ b/modules/Shortcuts.jsm
@@ -43,6 +43,7 @@ this.Shortcuts = {
ucatab: {command: 13},
saveWindow: {id: "key_tm-sm-saveone", default: "VK_F1 accel", sessionKey: true},
saveSession: {id: "key_tm-sm-saveall", default: "VK_F9 accel", sessionKey: true},
+ switchToLast: {command: 32},
slideShow: {id: "key_tm_slideShow", default: "d&VK_F8"},
toggleFLST: {id: "key_tm_toggleFLST", default: "d&VK_F9"}
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list