From a2d87f24f8dc484f7dd4dd869e9c90801ad53ddd Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Tue, 21 Sep 2021 14:26:18 +0200 Subject: [PATCH] [player] Rename event method to `onMouseDown` --- projects/player/src/app/components/key/key.component.html | 2 +- projects/player/src/app/components/key/key.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/player/src/app/components/key/key.component.html b/projects/player/src/app/components/key/key.component.html index 776dafe6a..cd1a298d4 100644 --- a/projects/player/src/app/components/key/key.component.html +++ b/projects/player/src/app/components/key/key.component.html @@ -1 +1 @@ -<button (mousedown)="onClick($event)" mat-stroked-button>{{character}}</button> +<button (mousedown)="onMouseDown($event)" mat-stroked-button>{{character}}</button> diff --git a/projects/player/src/app/components/key/key.component.ts b/projects/player/src/app/components/key/key.component.ts index b6e15fab0..0d28e8c24 100644 --- a/projects/player/src/app/components/key/key.component.ts +++ b/projects/player/src/app/components/key/key.component.ts @@ -11,7 +11,7 @@ export class KeyComponent { constructor(private specialCharacterService: SpecialCharacterService) { } - onClick(event: MouseEvent): void { + onMouseDown(event: MouseEvent): void { this.specialCharacterService.inputCharacter(this.character); event.preventDefault(); } -- GitLab