From 299d4791da08dc172d64838d1606deb5d5c53513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 18 Oct 2022 11:20:46 +0200 Subject: [PATCH] Disable color palette hotkey in production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- src/ColorPalette.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ColorPalette.svelte b/src/ColorPalette.svelte index c1764249c..877e98671 100644 --- a/src/ColorPalette.svelte +++ b/src/ColorPalette.svelte @@ -96,6 +96,10 @@ let checkers = false; const onKeydown = (event: KeyboardEvent) => { + if (import.meta.env.PROD) { + return; + } + const hasInputTarget = event.target && ((event.target as HTMLInputElement).type === "text" ||