radames commited on
Commit
5edbfe3
Β·
1 Parent(s): 3c47448

disable keyboar events on results

Browse files
Files changed (1) hide show
  1. frontend/src/lib/Result.svelte +4 -4
frontend/src/lib/Result.svelte CHANGED
@@ -57,12 +57,12 @@
57
  const compName = badgesComponents[totalStreaks];
58
  badgeComponent = (await import(`./badges/${compName}.svelte`)).default;
59
  }
60
- window.addEventListener('keyup', onKeyup, true);
61
  });
62
 
63
- onDestroy(() => {
64
- window.removeEventListener('keyup', onKeyup, true);
65
- });
66
  const s = 10;
67
  const p = 1;
68
  const rx = s / 10;
 
57
  const compName = badgesComponents[totalStreaks];
58
  badgeComponent = (await import(`./badges/${compName}.svelte`)).default;
59
  }
60
+ // window.addEventListener('keyup', onKeyup, true);
61
  });
62
 
63
+ // onDestroy(() => {
64
+ // window.removeEventListener('keyup', onKeyup, true);
65
+ // });
66
  const s = 10;
67
  const p = 1;
68
  const rx = s / 10;