diff --git a/src/ZenKeyboardShortcuts.mjs b/src/ZenKeyboardShortcuts.mjs index bbb7a48..f5c8f95 100644 --- a/src/ZenKeyboardShortcuts.mjs +++ b/src/ZenKeyboardShortcuts.mjs @@ -493,6 +493,10 @@ class ZenKeyboardShortcutsLoader { async load(withoutCache = false) { return (await this.loadObject(withoutCache))?.shortcuts; } + + async remove() { + await IOUtils.remove(this.shortcutsFile); + } } function zenGetDefaultShortcuts() { @@ -777,6 +781,10 @@ var gZenKeyboardShortcutsManager = { } }, + async resetAllShortcuts() { + await this.loader.remove(); + }, + async _saveShortcuts() { let json = []; for (shortcut of this._currentShortcutList) {