From 21c56590a5c3fbab3d0fd9f96f02d0cc08019790 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Sun, 31 Oct 2021 12:21:02 +1100 Subject: [PATCH] handle space and plus in hotkeys --- api/components/corner-action.css | 2 +- api/web.mjs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/components/corner-action.css b/api/components/corner-action.css index 5198f32..b04e466 100644 --- a/api/components/corner-action.css +++ b/api/components/corner-action.css @@ -28,7 +28,7 @@ display: flex; align-items: center; justify-content: center; - background: var(--theme--bg_card); + background: var(--theme--tag_default) !important; box-shadow: var(--theme--ui_shadow, rgba(15, 15, 15, 0.15)) 0px 0px 0px 1px, var(--theme--ui_shadow, rgba(15, 15, 15, 0.15)) 0px 2px 4px !important; diff --git a/api/web.mjs b/api/web.mjs index 4ee4182..baa101c 100644 --- a/api/web.mjs +++ b/api/web.mjs @@ -187,6 +187,8 @@ const triggerHotkeyListener = (event, hotkey) => { const pressed = modifiers[modifier].includes(key) && event[modifier]; if (pressed) return true; } + if (key === 'space') key = ' '; + if (key === 'plus') key = '+'; if (key === event.key.toLowerCase()) return true; }); if (pressed) hotkey.callback(event);