Selaa lähdekoodia

fix bug

pull/1/head
10sr 13 vuotta sitten
vanhempi
commit
ae6bcb45c7
1 muutettua tiedostoa jossa 12 lisäystä ja 3 poistoa
  1. +12
    -3
      _keysnail.js

+ 12
- 3
_keysnail.js Näytä tiedosto

@@ -510,11 +510,11 @@ key.suspendKey = "Not defined";


// ================================= Hooks ================================= // // ================================= Hooks ================================= //


hook.setHook('KeySnailInitialized', function () {
hook.addToHook('KeySnailInitialized', function () {
ext.exec("shiitake-enable-style"); ext.exec("shiitake-enable-style");
}); });


hook.setHook('KeyBoardQuit', function (aEvent) {
hook.addToHook('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();
gBrowser.focus(); gBrowser.focus();
@@ -527,7 +527,6 @@ hook.setHook('KeyBoardQuit', function (aEvent) {
} }
key.generateKey(aEvent.originalTarget, KeyEvent.DOM_VK_ESCAPE, true); key.generateKey(aEvent.originalTarget, KeyEvent.DOM_VK_ESCAPE, true);
}); });
hook.addToHook('KeyBoardQuit', function (aEvent) {});


hook.setHook('Unload', function () { hook.setHook('Unload', function () {
util.getBrowserWindows().some(function (win) { util.getBrowserWindows().some(function (win) {
@@ -541,6 +540,16 @@ hook.setHook('Unload', function () {
}); });
}); });


// hook.addToHook('LocationChange', function (aNsURI) {
// if(window.content.document.body){
// display.prettyPrint(window.content.document.title);
// }else{
// window.addEventListener("load", function(){
// disp = display;
// disp.prettyPrint(window.content.document.title);
// }, false);
// }
// });


// ============================= Key bindings ============================== // // ============================= Key bindings ============================== //




Ladataan…
Peruuta
Tallenna