| @@ -554,7 +554,7 @@ key.setGlobalKey('C-h', function (ev, arg) { | |||||
| return; | return; | ||||
| }, 'ignore'); | }, 'ignore'); | ||||
| key.setGlobalKey('C-l', function (ev, arg) { | |||||
| key.setViewKey('L', function (ev, arg) { | |||||
| ext.exec("hok-start-foreground-mode", arg, ev); | ext.exec("hok-start-foreground-mode", arg, ev); | ||||
| }, 'Start Hit a Hint foreground mode', true); | }, 'Start Hit a Hint foreground mode', true); | ||||
| @@ -564,6 +564,11 @@ key.setGlobalKey('<delete>', function (ev, arg) { | |||||
| content.focus(); | content.focus(); | ||||
| }, 'コンテンツへフォーカス', true); | }, 'コンテンツへフォーカス', true); | ||||
| key.setGlobalKey('C-p', function (ev, arg) { | |||||
| return !document.getElementById("keysnail-prompt").hidden && | |||||
| document.getElementById("keysnail-prompt-textbox").focus(); | |||||
| }, 'KeySnail のプロンプトへフォーカス', true); | |||||
| key.setViewKey('c', function (ev) { | key.setViewKey('c', function (ev) { | ||||
| command.interpreter(); | command.interpreter(); | ||||
| }, 'JavaScript のコードを評価'); | }, 'JavaScript のコードを評価'); | ||||
| @@ -658,10 +663,6 @@ key.setViewKey('!', function (ev, arg) { | |||||
| shell.input(); | shell.input(); | ||||
| }, 'Command system'); | }, 'Command system'); | ||||
| key.setViewKey('b', function (ev, arg) { | |||||
| BarTap.putOnTap(gBrowser.mCurrentTab, gBrowser); | |||||
| }, 'bartab put on tab'); | |||||
| key.setViewKey('R', function () { | key.setViewKey('R', function () { | ||||
| BrowserReloadSkipCache(); | BrowserReloadSkipCache(); | ||||
| }, '更新(キャッシュを無視)'); | }, '更新(キャッシュを無視)'); | ||||
| @@ -707,19 +708,10 @@ key.setViewKey(':', function (ev, arg) { | |||||
| document.getElementById("keysnail-prompt-textbox").focus(); | document.getElementById("keysnail-prompt-textbox").focus(); | ||||
| }, 'KeySnail のプロンプトへフォーカス', true); | }, 'KeySnail のプロンプトへフォーカス', true); | ||||
| key.setGlobalKey('C-p', function (ev, arg) { | |||||
| return !document.getElementById("keysnail-prompt").hidden && | |||||
| document.getElementById("keysnail-prompt-textbox").focus(); | |||||
| }, 'KeySnail のプロンプトへフォーカス', true); | |||||
| key.setViewKey('H', function (ev, arg) { | key.setViewKey('H', function (ev, arg) { | ||||
| ext.exec("open-hatebu-comment", arg, ev); | ext.exec("open-hatebu-comment", arg, ev); | ||||
| }, 'hatebu', true); | }, 'hatebu', true); | ||||
| key.setViewKey('l', function (ev) { | |||||
| command.focusToById("urlbar"); | |||||
| }, 'ロケーションバーへフォーカス', true); | |||||
| key.setViewKey('0', function (ev) { | key.setViewKey('0', function (ev) { | ||||
| BrowserCloseTabOrWindow(); | BrowserCloseTabOrWindow(); | ||||
| }, 'タブ / ウィンドウを閉じる'); | }, 'タブ / ウィンドウを閉じる'); | ||||
| @@ -743,3 +735,35 @@ key.setViewKey('T', function (ev, arg) { | |||||
| key.setEditKey('C-<tab>', function (ev) { | key.setEditKey('C-<tab>', function (ev) { | ||||
| command.walkInputElement(command.elementsRetrieverTextarea, true, true); | command.walkInputElement(command.elementsRetrieverTextarea, true, 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.setViewKey('J', function (ev) { | |||||
| getBrowser().mTabContainer.advanceSelectedTab(1, true); | |||||
| }, 'ひとつ右のタブへ'); | |||||
| key.setViewKey('K', function (ev) { | |||||
| getBrowser().mTabContainer.advanceSelectedTab(-1, true); | |||||
| }, 'ひとつ左のタブへ'); | |||||
| key.setViewKey('b', function (ev) { | |||||
| BrowserBack(); | |||||
| }, '戻る'); | |||||
| key.setViewKey('B', function (ev) { | |||||
| BrowserForward(); | |||||
| }, '進む'); | |||||
| key.setViewKey('l', function (ev) { | |||||
| goDoCommand("cmd_scrollPageDown"); | |||||
| }, '一画面スクロールダウン'); | |||||
| key.setViewKey('h', function (ev) { | |||||
| goDoCommand("cmd_scrollPageUp"); | |||||
| }, '一画面分スクロールアップ'); | |||||