Procházet zdrojové kódy

keysnail.js: update keybinds

pull/1/head
10sr před 10 roky
rodič
revize
69055da8c7
1 změnil soubory, kde provedl 16 přidání a 25 odebrání
  1. +16
    -25
      _keysnail.js

+ 16
- 25
_keysnail.js Zobrazit soubor

@@ -780,7 +780,6 @@ key.suspendKey = "Not defined";

// ================================= Hooks ================================= //


hook.setHook('KeyBoardQuit', function (aEvent) {
// ext.exec("hide-sidebar");
let(elem = document.commandDispatcher.focusedElement) elem && elem.blur();
@@ -873,11 +872,11 @@ key.setViewKey('0', function (ev) {
BrowserCloseTabOrWindow();
}, 'タブ / ウィンドウを閉じる');

key.setViewKey('N', function (ev) {
key.setViewKey('l', function (ev) {
getBrowser().mTabContainer.advanceSelectedTab(1, true);
}, 'ひとつ右のタブへ');

key.setViewKey('P', function (ev) {
key.setViewKey('h', function (ev) {
getBrowser().mTabContainer.advanceSelectedTab(-1, true);
}, 'ひとつ左のタブへ');

@@ -921,10 +920,6 @@ key.setViewKey('r', function (aEvent) {
BrowserReload();
}, '再読み込み');

key.setViewKey('m', function (ev, arg) {
_fi.toogle();
}, 'fetchimiをトグル');

key.setViewKey('z', function (ev, arg) {
ext.exec("keysnail-z-menu", arg, ev);
}, 'open keysnail setting menu', true);
@@ -1006,22 +1001,10 @@ key.setViewKey('T', function (ev, arg) {
ext.exec("mstranslator-open-prompt", arg, ev);
}, 'MSTranslator - Open prompt', true);

key.setViewKey('n', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_DOWN, true);
}, '一行スクロールダウン');

key.setViewKey('p', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_UP, true);
}, '一行スクロールアップ');

key.setViewKey('f', function (ev, arg) {
ext.exec('strong-fullscreen', arg, ev);
}, 'go fullscreen with hiding toolbar and tabbar', true);

key.setViewKey('b', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_LEFT, true);
}, '左へスクロール');

key.setViewKey('F', function (ev) {
var browser = getBrowser();
if (browser.mCurrentTab.nextSibling) {
@@ -1035,6 +1018,14 @@ key.setViewKey('U', function (ev, arg) {
ext.exec("list-closed-tabs", arg, ev);
}, 'List closed tabs', true);

key.setViewKey('j', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_DOWN, true);
}, '一行スクロールダウン');

key.setViewKey('k', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_UP, true);
}, '一行スクロールアップ');

key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス');
@@ -1083,10 +1074,10 @@ key.setEditKey('C-o', function (ev) {
command.openLine(ev);
}, '行を開く (Open line)');

key.setViewKey('j', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_DOWN, true);
}, '一行スクロールダウン');
key.setViewKey('p', function (ev, arg) {
ext.exec('pocket-add-current', arg, ev);
}, 'Add current page', true);

key.setViewKey('k', function (ev) {
key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_UP, true);
}, '一行スクロールアップ');
key.setViewKey('P', function (ev, arg) {
ext.exec('pocket-open-latest', arg, ev);
}, 'Open last saved page', true);

Načítá se…
Zrušit
Uložit