Commit 0f866289 authored by Li MingZhe's avatar Li MingZhe

fix: 取消聚焦

parent 60778a9e
...@@ -216,7 +216,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi ...@@ -216,7 +216,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
this.draw(adb); this.draw(adb);
this.isLoadingAudioBuffer = false; this.isLoadingAudioBuffer = false;
// (document.activeElement as HTMLButtonElement).blur(); // (document.activeElement as HTMLButtonElement).blur();
// this.canvasElRef.nativeElement.focus(); // //this.canvasElRef.nativeElement.focus();
}); });
} }
...@@ -271,12 +271,12 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi ...@@ -271,12 +271,12 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
e.stopPropagation(); e.stopPropagation();
if (e.code === 'ArrowUp') { if (e.code === 'ArrowUp') {
this.togglePlayAudio(); this.togglePlayAudio();
this.canvasElRef.nativeElement.focus(); //this.canvasElRef.nativeElement.focus();
} }
if (e.code === 'ArrowDown') { if (e.code === 'ArrowDown') {
this.setTimestampPoint(); this.setTimestampPoint();
this.canvasElRef.nativeElement.focus(); //this.canvasElRef.nativeElement.focus();
// set time point // set time point
} }
if (e.code === 'ArrowLeft') { if (e.code === 'ArrowLeft') {
...@@ -285,7 +285,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi ...@@ -285,7 +285,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
} else { } else {
this.audioObj.currentTime -= 1; this.audioObj.currentTime -= 1;
} }
this.canvasElRef.nativeElement.focus(); //this.canvasElRef.nativeElement.focus();
} }
if (e.code === 'ArrowRight') { if (e.code === 'ArrowRight') {
...@@ -294,7 +294,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi ...@@ -294,7 +294,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
} else { } else {
this.audioObj.currentTime += 1; this.audioObj.currentTime += 1;
} }
this.canvasElRef.nativeElement.focus(); //this.canvasElRef.nativeElement.focus();
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment