From f67b88602204a7bfd47dac95fc5de116ff25eb8e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 23 Sep 2015 01:47:54 +0900 Subject: [PATCH] Fix for new firefox (?) --- _keysnail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 0d7c287..6566c12 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -1015,7 +1015,7 @@ key.suspendKey = "Not defined"; hook.setHook('KeyBoardQuit', function (aEvent) { // ext.exec("hide-sidebar"); - let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); + let(elem = document.commandDispatcher.focusedElement) {elem && elem.blur()}; getBrowser().focus(); content.focus(); command.closeFindBar(); @@ -1066,7 +1066,7 @@ key.setGlobalKey('C-', function () { }, '選択中のタブを左へ'); key.setGlobalKey('', function (ev, arg) { - let (elem = document.commandDispatcher.focusedElement) elem && elem.blur(); + let (elem = document.commandDispatcher.focusedElement) {elem && elem.blur()}; getBrowser().focus(); content.focus(); }, 'コンテンツへフォーカス', true);