From 39735309b2f2831ea8fe94104139fa0e9f6ace56 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Sun, 12 Jun 2022 14:39:37 +0200
Subject: refactor: Close blowout toolbelt on escape or click outside of
 [data-blowout-toolbelt-element]

---
 apps/web-shared/src/components/theme-switcher.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps/web-shared/src/components/theme-switcher.svelte')

diff --git a/apps/web-shared/src/components/theme-switcher.svelte b/apps/web-shared/src/components/theme-switcher.svelte
index 397bad4..6f86875 100644
--- a/apps/web-shared/src/components/theme-switcher.svelte
+++ b/apps/web-shared/src/components/theme-switcher.svelte
@@ -13,7 +13,7 @@
     onMount(() => {
         selection = get_cookie(CookieNames.theme) as theme;
         document.addEventListener("keydown", (e) => {
-            if (e.code === "Esc") show = false;
+            if (e.code === "Escape") show = false;
         });
         document.addEventListener("click", (e: any) => {
             if (e.target.closest("[data-theme-switcher-element]") === null) show = false;
-- 
cgit v1.3

