Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_21
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
et_21
Commits
0f866289
Commit
0f866289
authored
Feb 25, 2021
by
Li MingZhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 取消聚焦
parent
60778a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lrc-editor.component.ts
form/src/app/common/lrc-editor/lrc-editor.component.ts
+5
-5
No files found.
form/src/app/common/lrc-editor/lrc-editor.component.ts
View file @
0f866289
...
...
@@ -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();
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment