Skip to content

Commit

Permalink
Turn tabs into spaces for indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Oct 8, 2024
1 parent 41d32c0 commit d4649b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions replay.pokemonshowdown.com/src/replays-battle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class BattlePanel extends preact.Component<{id: string}> {
}
// @ts-ignore
if (e.target?.tagName === 'INPUT' || e.target?.tagName === 'SELECT') return;
let target;
let target;
switch (e.keyCode) {
case 75: // k
if (this.battle?.atQueueEnd) {
Expand Down Expand Up @@ -232,26 +232,26 @@ export class BattlePanel extends preact.Component<{id: string}> {
this.changeSpeed({target});
break;
case 70: // f
target = this.base?.querySelector<HTMLSelectElement>('select[name=speed]');
if (!target) return;
target = this.base?.querySelector<HTMLSelectElement>('select[name=speed]');
if (!target) return;
target.value = 'fast';
this.changeSpeed({target});
break;
case 78: // n
target = this.base?.querySelector<HTMLSelectElement>('select[name=speed]');
if (!target) return;
if (!target) return;
target.value = 'normal';
this.changeSpeed({target});
break;
case 83: // s
target = this.base?.querySelector<HTMLSelectElement>('select[name=speed]');
if (!target) return;
if (!target) return;
target.value = 'slow';
this.changeSpeed({target});
break;
case 82: // r
target = this.base?.querySelector<HTMLSelectElement>('select[name=speed]');
if (!target) return;
if (!target) return;
target.value = 'reallyslow';
this.changeSpeed({target});
break;
Expand Down

0 comments on commit d4649b4

Please sign in to comment.