From 0d2218c6bd7539617ef483d9fd70889424b8566e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 28 Jul 2012 20:33:04 +0900 Subject: [PATCH] fix hook --- _keysnail.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 466908e..6b5734b 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -594,15 +594,14 @@ key.suspendKey = "Not defined"; // ================================= Hooks ================================= // -hook.setHook('KeySnailInitialized', function () { - ext.exec("shiitake-enable-style"); -}); - hook.setHook('KeyBoardQuit', function (aEvent) { ext.exec("hide-sidebar"); + + // focus to content let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); gBrowser.focus(); content.focus(); + command.closeFindBar(); if (util.isCaretEnabled()) { command.resetMark(aEvent);