|
|
@@ -616,6 +616,7 @@ key.suspendKey = "Not defined"; |
|
|
|
|
|
|
|
|
// ================================= Hooks ================================= // |
|
|
// ================================= Hooks ================================= // |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hook.setHook('KeyBoardQuit', function (aEvent) { |
|
|
hook.setHook('KeyBoardQuit', function (aEvent) { |
|
|
ext.exec("hide-sidebar"); |
|
|
ext.exec("hide-sidebar"); |
|
|
let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); |
|
|
let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); |
|
|
@@ -643,7 +644,6 @@ hook.setHook('Unload', function () { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ============================= Key bindings ============================== // |
|
|
// ============================= Key bindings ============================== // |
|
|
|
|
|
|
|
|
key.setGlobalKey('C-<right>', function () { |
|
|
key.setGlobalKey('C-<right>', function () { |
|
|
@@ -682,6 +682,10 @@ key.setGlobalKey('<f11>', function (ev, arg) { |
|
|
ext.exec("strong-fullscreen", arg, ev); |
|
|
ext.exec("strong-fullscreen", arg, ev); |
|
|
}, 'go fullscreen with hiding toolbar and tabbar', true); |
|
|
}, 'go fullscreen with hiding toolbar and tabbar', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setViewKey('0', function (ev) { |
|
|
|
|
|
BrowserCloseTabOrWindow(); |
|
|
|
|
|
}, 'タブ / ウィンドウを閉じる'); |
|
|
|
|
|
|
|
|
key.setViewKey('N', function (ev) { |
|
|
key.setViewKey('N', function (ev) { |
|
|
getBrowser().mTabContainer.advanceSelectedTab(1, true); |
|
|
getBrowser().mTabContainer.advanceSelectedTab(1, true); |
|
|
}, 'ひとつ右のタブへ'); |
|
|
}, 'ひとつ右のタブへ'); |
|
|
@@ -822,10 +826,6 @@ key.setViewKey('B', function (ev) { |
|
|
} |
|
|
} |
|
|
}, '選択中のタブを左へ'); |
|
|
}, '選択中のタブを左へ'); |
|
|
|
|
|
|
|
|
key.setViewKey('0', function (ev) { |
|
|
|
|
|
BrowserCloseTabOrWindow(); |
|
|
|
|
|
}, 'タブ / ウィンドウを閉じる'); |
|
|
|
|
|
|
|
|
|
|
|
key.setViewKey('C', function (ev, arg) { |
|
|
key.setViewKey('C', function (ev, arg) { |
|
|
ext.exec("linksnail", arg, ev); |
|
|
ext.exec("linksnail", arg, ev); |
|
|
}, 'LinkSnail', true); |
|
|
}, 'LinkSnail', true); |
|
|
@@ -918,3 +918,7 @@ key.setEditKey('C-p', function (ev) { |
|
|
key.setEditKey('C-o', function (ev) { |
|
|
key.setEditKey('C-o', function (ev) { |
|
|
command.openLine(ev); |
|
|
command.openLine(ev); |
|
|
}, '行を開く (Open line)'); |
|
|
}, '行を開く (Open line)'); |
|
|
|
|
|
|
|
|
|
|
|
key.setViewKey('f', function (ev, arg) { |
|
|
|
|
|
ext.exec('strong-fullscreen', arg, ev); |
|
|
|
|
|
}, 'go fullscreen with hiding toolbar and tabbar', true); |