From 232d03856081b96de76f9efc23e63565331b6ac9 Mon Sep 17 00:00:00 2001 From: George Gevoian <85144792+georgegevoian@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:26:10 -0400 Subject: [PATCH] Enable keyboard shortcuts in calendar (#68) --- calendar/page.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/page.js b/calendar/page.js index 3c101462..ca59aba3 100644 --- a/calendar/page.js +++ b/calendar/page.js @@ -318,6 +318,9 @@ async function configureGristSettings() { // When options changed in the widget configuration (reaction to perspective change) grist.onOptions(onGristSettingsChanged); + // TODO: remove optional chaining once grist-plugin-api.js includes this function. + grist.enableKeyboardShortcuts?.(); + // bind columns mapping options to the GUI const columnsMappingOptions = getGristOptions(); grist.ready({ requiredAccess: 'read table', columns: columnsMappingOptions, allowSelectBy: true });