Skip to content
Snippets Groups Projects
Commit a2d87f24 authored by jojohoch's avatar jojohoch
Browse files

[player] Rename event method to `onMouseDown`

parent f9ee3b3a
No related branches found
No related tags found
No related merge requests found
<button (mousedown)="onClick($event)" mat-stroked-button>{{character}}</button> <button (mousedown)="onMouseDown($event)" mat-stroked-button>{{character}}</button>
...@@ -11,7 +11,7 @@ export class KeyComponent { ...@@ -11,7 +11,7 @@ export class KeyComponent {
constructor(private specialCharacterService: SpecialCharacterService) { } constructor(private specialCharacterService: SpecialCharacterService) { }
onClick(event: MouseEvent): void { onMouseDown(event: MouseEvent): void {
this.specialCharacterService.inputCharacter(this.character); this.specialCharacterService.inputCharacter(this.character);
event.preventDefault(); event.preventDefault();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment