From 7c20d4b318c59262bac60013ca3f0f61e45ec298 Mon Sep 17 00:00:00 2001 From: Mads Taanquist Date: Thu, 30 Jul 2026 21:33:55 +0200 Subject: [PATCH] Show Cmd and Option in shortcut hints on Apple platforms The quick-note hint and the editor's TODO hint hardcoded Ctrl and Alt; they now read the platform labels from the existing keys helper, which gains altLabel beside modLabel. The shortcuts article's convention line covers Option too. Co-Authored-By: Claude Fable 5 --- src/lib/components/QuickNote.svelte | 8 +++++++- src/lib/docs/planning.md | 2 +- src/lib/docs/shortcuts.md | 3 ++- src/lib/keys.test.ts | 2 +- src/lib/keys.ts | 21 ++++++++++++++++----- src/routes/stories/[id]/+page.svelte | 12 +++++++++++- 6 files changed, 38 insertions(+), 10 deletions(-) diff --git a/src/lib/components/QuickNote.svelte b/src/lib/components/QuickNote.svelte index 3dd7c12..7c672ab 100644 --- a/src/lib/components/QuickNote.svelte +++ b/src/lib/components/QuickNote.svelte @@ -1,5 +1,7 @@