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
this.draw(adb);
this.isLoadingAudioBuffer = false;
// (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
e.stopPropagation();
if (e.code === 'ArrowUp') {
this.togglePlayAudio();
this.canvasElRef.nativeElement.focus();
//this.canvasElRef.nativeElement.focus();
}
if (e.code === 'ArrowDown') {
this.setTimestampPoint();
this.canvasElRef.nativeElement.focus();
//this.canvasElRef.nativeElement.focus();
// set time point
}
if (e.code === 'ArrowLeft') {
......@@ -285,7 +285,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
} else {
this.audioObj.currentTime -= 1;
}
this.canvasElRef.nativeElement.focus();
//this.canvasElRef.nativeElement.focus();
}
if (e.code === 'ArrowRight') {
......@@ -294,7 +294,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
} else {
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