From c1776d8a6a61e3b14cc6e87907ae967d691bee36 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index b4a7cf3..1471cde 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -16,6 +16,12 @@ ) { $actions.undo(e); } + if ( + e.key === "F1" && + $actions.help !== undefined + ) { + $actions.help(e); + } };