diff --git a/_keysnail.js b/_keysnail.js index d3d0494..8e005ea 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -744,7 +744,6 @@ key.suspendKey = "Not defined"; // ================================= Hooks ================================= // - hook.setHook('KeyBoardQuit', function (aEvent) { // ext.exec("hide-sidebar"); let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); @@ -775,14 +774,6 @@ hook.setHook('Unload', function () { // ============================= Key bindings ============================== // -key.setGlobalKey('C-', function () { - getBrowser().mTabContainer.advanceSelectedTab(1, true); -}, 'ひとつ右のタブへ'); - -key.setGlobalKey('C-', function () { - getBrowser().mTabContainer.advanceSelectedTab(-1, true); -}, 'ひとつ左のタブへ'); - key.setGlobalKey('C-', function () { var browser = getBrowser(); if (browser.mCurrentTab.previousSibling) { @@ -1029,3 +1020,11 @@ key.setEditKey('C-p', function (ev) { key.setEditKey('C-o', function (ev) { command.openLine(ev); }, '行を開く (Open line)'); + +key.setGlobalKey('C-', function (ev) { + getBrowser().mTabContainer.advanceSelectedTab(1, true); +}, 'ひとつ右のタブへ'); + +key.setGlobalKey('C-', function (ev) { + getBrowser().mTabContainer.advanceSelectedTab(-1, true); +}, 'ひとつ左のタブへ');