From 3cee59e024da8d927c8922e39b202a7edbacc139 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sun, 22 Mar 2026 23:06:18 +0530 Subject: [PATCH] fix: update save shortcut to use `cmd/ctrl+Shift+S` for saving in PlateEditor and FixedToolbarButtons --- surfsense_web/components/editor/plate-editor.tsx | 4 +--- surfsense_web/components/ui/fixed-toolbar-buttons.tsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/surfsense_web/components/editor/plate-editor.tsx b/surfsense_web/components/editor/plate-editor.tsx index 5df5ad1a7..870ded55f 100644 --- a/surfsense_web/components/editor/plate-editor.tsx +++ b/surfsense_web/components/editor/plate-editor.tsx @@ -87,15 +87,13 @@ export function PlateEditor({ onSaveRef.current = onSave; }, [onSave]); - // Stable Plate plugin for ⌘+S / Ctrl+S save shortcut. - // Only included when onSave is provided. const SaveShortcutPlugin = useMemo( () => createPlatePlugin({ key: "save-shortcut", shortcuts: { save: { - keys: [[Key.Mod, "s"]], + keys: [[Key.Mod, Key.Shift, "s"]], handler: () => { onSaveRef.current?.(); }, diff --git a/surfsense_web/components/ui/fixed-toolbar-buttons.tsx b/surfsense_web/components/ui/fixed-toolbar-buttons.tsx index d732c392f..398d2f902 100644 --- a/surfsense_web/components/ui/fixed-toolbar-buttons.tsx +++ b/surfsense_web/components/ui/fixed-toolbar-buttons.tsx @@ -144,7 +144,7 @@ export function FixedToolbarButtons() { isSaving ? ( "Saving..." ) : ( - + ) } onClick={onSave}