mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 03:35:47 +01:00
Fix shortcomings in last commit.
This commit is contained in:
@@ -39,7 +39,7 @@ var HintSession = Class("HintSession", CommandMode, {
|
|||||||
|
|
||||||
this.top = opts.window || content;
|
this.top = opts.window || content;
|
||||||
this.top.addEventListener("resize", hints.resizeTimer.closure.tell, true);
|
this.top.addEventListener("resize", hints.resizeTimer.closure.tell, true);
|
||||||
this.top.addEventListener("dactyl-commandupdate", hints.resizeTimer.closure.tell, true);
|
this.top.addEventListener("dactyl-commandupdate", hints.resizeTimer.closure.tell, false, true);
|
||||||
|
|
||||||
this.generate();
|
this.generate();
|
||||||
|
|
||||||
|
|||||||
@@ -228,6 +228,10 @@ var Addon = Class("Addon", {
|
|||||||
for (let node in values(this.nodes))
|
for (let node in values(this.nodes))
|
||||||
if (node.update && node.update !== callee)
|
if (node.update && node.update !== callee)
|
||||||
node.update();
|
node.update();
|
||||||
|
|
||||||
|
let event = this.document.createEvent("Events");
|
||||||
|
event.initEvent("dactyl-commandupdate", true, false);
|
||||||
|
this.document.dispatchEvent(event);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -258,6 +258,10 @@ var DownloadList = Class("DownloadList",
|
|||||||
if (node.update && node.update != update)
|
if (node.update && node.update != update)
|
||||||
node.update();
|
node.update();
|
||||||
this.updateProgress();
|
this.updateProgress();
|
||||||
|
|
||||||
|
let event = this.document.createEvent("Events");
|
||||||
|
event.initEvent("dactyl-commandupdate", true, false);
|
||||||
|
this.document.dispatchEvent(event);
|
||||||
},
|
},
|
||||||
|
|
||||||
timeRemaining: Infinity,
|
timeRemaining: Infinity,
|
||||||
|
|||||||
@@ -141,8 +141,8 @@ var Template = Module("Template", {
|
|||||||
|
|
||||||
if (collapsed == this.commandAllowed) {
|
if (collapsed == this.commandAllowed) {
|
||||||
let event = this.node.ownerDocument.createEvent("Events");
|
let event = this.node.ownerDocument.createEvent("Events");
|
||||||
event.initEvent("dactyl-commandupdate", false, false);
|
event.initEvent("dactyl-commandupdate", true, false);
|
||||||
this.node.dispatchEvent(event);
|
this.node.ownerDocument.dispatchEvent(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user