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/locale-switcher.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/apps/web-shared/src/components/locale-switcher.svelte b/apps/web-shared/src/components/locale-switcher.svelte
index 9cffc7a..5399247 100644
--- a/apps/web-shared/src/components/locale-switcher.svelte
+++ b/apps/web-shared/src/components/locale-switcher.svelte
@@ -17,7 +17,7 @@
 	onMount(() => {
 		selection = get_cookie(CookieNames.locale);
 		document.addEventListener("keydown", (e) => {
-			if (e.code === "Esc") {
+			if (e.code === "Escape") {
 				show = false;
 			}
 		});
-- 
cgit v1.3

