From b3fdaf21364d65a97b18088324b9cfe2c4be5eaf Mon Sep 17 00:00:00 2001 From: Toni Kangas Date: Thu, 7 Dec 2023 00:21:02 +0200 Subject: [PATCH] Add keyboard shortcut for opening help --- src/App.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index b4a7cf3..4ec8d17 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -16,6 +16,9 @@ ) { $actions.undo(e); } + if (e.key === "F1" && $actions.help !== undefined) { + $actions.help(e); + } };