mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 08:55:46 +01:00
Update hints on command change in :addons/:downloads.
This commit is contained in:
@@ -136,7 +136,14 @@ var Template = Module("Template", {
|
||||
},
|
||||
|
||||
update: function update() {
|
||||
let collapsed = this.collapsed;
|
||||
this.collapsed = !this.commandAllowed;
|
||||
|
||||
if (collapsed == this.commandAllowed) {
|
||||
let event = this.node.ownerDocument.createEvent("Events");
|
||||
event.initEvent("dactyl-commandupdate", false, false);
|
||||
this.node.dispatchEvent(event);
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user