summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-04-06 11:59:23 +0200
committerGravatar Tom Willemse2014-04-06 11:59:23 +0200
commit1161406da175fc6a3a2069e9d04e480066eb01b3 (patch)
treebe35cd0e4e757acee84a902df4c15df7e446c14b
parent2273c86ad02546c54bc5b01631e536ab281a1cad (diff)
downloadkeysnail-1161406da175fc6a3a2069e9d04e480066eb01b3.tar.gz
keysnail-1161406da175fc6a3a2069e9d04e480066eb01b3.zip
Set M-n and M-p as tab commands
-rw-r--r--.keysnail.js28
1 files changed, 2 insertions, 26 deletions
diff --git a/.keysnail.js b/.keysnail.js
index 6bc6228..525e7ea 100644
--- a/.keysnail.js
+++ b/.keysnail.js
@@ -127,11 +127,11 @@ key.setGlobalKey(["C-x", "n"], function (ev) {
OpenBrowserWindow();
}, 'Open new window', false);
-key.setGlobalKey('C-M-l', function (ev) {
+key.setGlobalKey([['C-M-l'], ['M-n']], function (ev) {
getBrowser().mTabContainer.advanceSelectedTab(1, true);
}, 'Select next tab', false);
-key.setGlobalKey('C-M-h', function (ev) {
+key.setGlobalKey([['C-M-h'], ['M-p']], function (ev) {
getBrowser().mTabContainer.advanceSelectedTab(-1, true);
}, 'Select previous tab', false);
@@ -310,14 +310,6 @@ key.setEditKey(["C-x", "r", "y"], function (ev) {
command.yankRectangle(ev.originalTarget, command.kill.buffer);
}, 'Yank the last killed rectangle with upper left corner at point', true);
-key.setEditKey('M-n', function (ev) {
- command.walkInputElement(command.elementsRetrieverTextarea, true, true);
- }, 'Focus to the next text area', false);
-
-key.setEditKey('M-p', function (ev) {
- command.walkInputElement(command.elementsRetrieverTextarea, false, true);
- }, 'Focus to the previous text area', false);
-
key.setViewKey([["C-n"], ["j"]], function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_DOWN, true);
}, 'Scroll line down', false);
@@ -382,14 +374,6 @@ key.setViewKey('f', function (ev) {
command.focusElement(command.elementsRetrieverTextarea, 0);
}, 'Focus to the first textarea', true);
-key.setViewKey('M-p', function (ev) {
- command.walkInputElement(command.elementsRetrieverButton, true, true);
- }, 'Focus to the next button', false);
-
-key.setViewKey('M-n', function (ev) {
- command.walkInputElement(command.elementsRetrieverButton, false, true);
- }, 'Focus to the previous button', false);
-
key.setViewKey('e', function (aEvent, aArg) {
ext.exec("hok-start-foreground-mode", aArg);
}, 'HoK - Foreground hint mode', true);
@@ -529,11 +513,3 @@ key.setCaretKey(["C-x", "h"], function (ev) {
key.setCaretKey('f', function (ev) {
command.focusElement(command.elementsRetrieverTextarea, 0);
}, 'Focus to the first textarea', true);
-
-key.setCaretKey('M-p', function (ev) {
- command.walkInputElement(command.elementsRetrieverButton, true, true);
- }, 'Focus to the next button', false);
-
-key.setCaretKey('M-n', function (ev) {
- command.walkInputElement(command.elementsRetrieverButton, false, true);
- }, 'Focus to the previous button', false);