mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Disable color palette hotkey in production
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -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" ||
|
||||
|
||||
Reference in New Issue
Block a user