gabraken commited on
Commit
c5be6f3
·
1 Parent(s): 7f61fe6

Remove debug shortuts

Browse files
frontend/src/lib/components/Map.svelte CHANGED
@@ -604,8 +604,8 @@
604
  .catch(() => {});
605
 
606
  const onKey = (e: KeyboardEvent) => {
607
- if (e.key === 'w' || e.key === 'W') showWalkable = !showWalkable;
608
- if (e.key === 'n' || e.key === 'N') showNavPoints = !showNavPoints;
609
  };
610
  window.addEventListener('keydown', onKey);
611
  return () => window.removeEventListener('keydown', onKey);
 
604
  .catch(() => {});
605
 
606
  const onKey = (e: KeyboardEvent) => {
607
+ if (e.altKey && (e.key === 'w' || e.key === 'W')) showWalkable = !showWalkable;
608
+ if (e.altKey && (e.key === 'n' || e.key === 'N')) showNavPoints = !showNavPoints;
609
  };
610
  window.addEventListener('keydown', onKey);
611
  return () => window.removeEventListener('keydown', onKey);