A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: add support for removing recents in command palette using delete key (#8069)
01zulfi5d01159e20c3
diff --git a/apps/web/src/dialogs/command-palette/command-palette-dialog.tsx b/apps/web/src/dialogs/command-palette/command-palette-dialog.tsxindex 595753a86..8688570fb 100644--- a/apps/web/src/dialogs/command-palette/command-palette-dialog.tsx+++ b/apps/web/src/dialogs/command-palette/command-palette-dialog.tsx@@ -118,6 +118,18 @@ export const CommandPaletteDialog = DialogManager.register(}}onKeyDown={(e) => {if (commands.status !== "fulfilled") return;+ if (e.key === "Delete") {+ e.preventDefault();+ const command = commands.value.commands[selected];+ if (!command) return;+ if (command.group !== "recent") return;+ removeRecentCommand(command.id);+ getDefaultCommands().then((resolved) => {+ defaultCommands.current = resolved;+ commands.refresh();+ });+ return;+ }if (e.key == "Enter") {e.preventDefault();