mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 06:27:59 +01:00
Integrate sanitizer with host UI, sanitize at shutdown support, and control which items are sanitized when more thoroughly. Closes issue #70.
This commit is contained in:
@@ -756,7 +756,7 @@ const Events = Module("events", {
|
||||
dactyl.echomsg("Recorded macro '" + this._currentMacro + "'");
|
||||
return killEvent();
|
||||
}
|
||||
else if (!mappings.hasMap(mode, this._input.buffer + key))
|
||||
else if (!mappings.hasMap(modes.main, this._input.buffer + key))
|
||||
this._macros.set(this._currentMacro, {
|
||||
keys: this._macros.get(this._currentMacro, {}).keys + key,
|
||||
timeRecorded: Date.now()
|
||||
@@ -1087,6 +1087,7 @@ const Events = Module("events", {
|
||||
sanitizer: function () {
|
||||
sanitizer.addItem("macros", {
|
||||
description: "Saved macros",
|
||||
persistent: true,
|
||||
action: function (timespan, host) {
|
||||
if (!host)
|
||||
for (let [k, m] in events._macros)
|
||||
|
||||
Reference in New Issue
Block a user