Browse Source

Fix for new firefox (?)

pull/15/head
10sr 9 years ago
parent
commit
f67b886022
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      _keysnail.js

+ 2
- 2
_keysnail.js View File

@@ -1015,7 +1015,7 @@ key.suspendKey = "Not defined";


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()};
getBrowser().focus(); getBrowser().focus();
content.focus(); content.focus();
command.closeFindBar(); command.closeFindBar();
@@ -1066,7 +1066,7 @@ key.setGlobalKey('C-<down>', function () {
}, '選択中のタブを左へ'); }, '選択中のタブを左へ');


key.setGlobalKey('<delete>', function (ev, arg) { key.setGlobalKey('<delete>', function (ev, arg) {
let (elem = document.commandDispatcher.focusedElement) elem && elem.blur();
let (elem = document.commandDispatcher.focusedElement) {elem && elem.blur()};
getBrowser().focus(); getBrowser().focus();
content.focus(); content.focus();
}, 'コンテンツへフォーカス', true); }, 'コンテンツへフォーカス', true);


Loading…
Cancel
Save