| @@ -61,7 +61,7 @@ plugins.options["my-keysnail-bookmarks"] = [ | |||||
| util.setIntPref("extensions.chaika.server_port.firefox", | util.setIntPref("extensions.chaika.server_port.firefox", | ||||
| 8800 + Math.floor(Math.random() * 30)); | 8800 + Math.floor(Math.random() * 30)); | ||||
| local["^http://127.0.0.1:8823/thread/"] = [ | |||||
| local["^http://127.0.0.1:..../thread/"] = [ | |||||
| ['k', function (ev, arg) { | ['k', function (ev, arg) { | ||||
| curl = window.content.location.href; | curl = window.content.location.href; | ||||
| kurl = curl.replace(/http:.*thread\/(.*\/).*/, "chaika://post/$1"); | kurl = curl.replace(/http:.*thread\/(.*\/).*/, "chaika://post/$1"); | ||||
| @@ -617,12 +617,9 @@ key.suspendKey = "Not defined"; | |||||
| hook.setHook('KeyBoardQuit', function (aEvent) { | hook.setHook('KeyBoardQuit', function (aEvent) { | ||||
| ext.exec("hide-sidebar"); | ext.exec("hide-sidebar"); | ||||
| // focus to content | |||||
| let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); | let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); | ||||
| gBrowser.focus(); | gBrowser.focus(); | ||||
| content.focus(); | content.focus(); | ||||
| command.closeFindBar(); | command.closeFindBar(); | ||||
| if (util.isCaretEnabled()) { | if (util.isCaretEnabled()) { | ||||
| command.resetMark(aEvent); | command.resetMark(aEvent); | ||||
| @@ -689,6 +686,10 @@ key.setGlobalKey('C-p', function (ev, arg) { | |||||
| document.getElementById("keysnail-prompt-textbox").focus(); | document.getElementById("keysnail-prompt-textbox").focus(); | ||||
| }, 'KeySnail のプロンプトへフォーカス', true); | }, 'KeySnail のプロンプトへフォーカス', true); | ||||
| key.setGlobalKey('<f11>', function (ev, arg) { | |||||
| ext.exec("strong-fullscreen", arg, ev); | |||||
| }, 'go fullscreen with hiding toolbar and tabbar', true); | |||||
| key.setViewKey('J', function (ev) { | key.setViewKey('J', function (ev) { | ||||
| getBrowser().mTabContainer.advanceSelectedTab(1, true); | getBrowser().mTabContainer.advanceSelectedTab(1, true); | ||||
| }, 'ひとつ右のタブへ'); | }, 'ひとつ右のタブへ'); | ||||
| @@ -880,14 +881,10 @@ key.setViewKey('L', function (ev) { | |||||
| } | } | ||||
| }, '選択中のタブを右へ'); | }, '選択中のタブを右へ'); | ||||
| key.setViewKey('U', function (ev) { | |||||
| undoCloseTab(); | |||||
| }, '閉じたタブを元に戻す'); | |||||
| 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.setGlobalKey('<f11>', function (ev, arg) { | |||||
| ext.exec('strong-fullscreen', arg, ev); | |||||
| }, 'go fullscreen with hiding toolbar and tabbar', true); | |||||
| key.setViewKey('U', function (ev, arg) { | |||||
| ext.exec('list-closed-tabs', arg, ev); | |||||
| }, 'List closed tabs', true); | |||||