|
@@ -594,15 +594,14 @@ key.suspendKey = "Not defined"; |
|
|
|
|
|
|
|
|
// ================================= Hooks ================================= // |
|
|
// ================================= Hooks ================================= // |
|
|
|
|
|
|
|
|
hook.setHook('KeySnailInitialized', function () { |
|
|
|
|
|
ext.exec("shiitake-enable-style"); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
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); |
|
|