Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Disable color palette hotkey in production
Rūdolfs Ošiņš committed 3 years ago
commit 299d4791da08dc172d64838d1606deb5d5c53513
parent 8733636d6e125287a8bab3c3c4d2b543a2ac34b0
1 file changed +4 -0
modified 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" ||