Disable color palette hotkey in production

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-10-18 11:20:46 +02:00
parent 8733636d6e
commit 299d4791da
+4
View File
@@ -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" ||