Skip to content

Commit

Permalink
Fixed firefox lyrics editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Aug 11, 2020
1 parent b7bb028 commit f4bb0be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/page/btn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ export const insetLyricsBtn = async () => {
},
true,
);
lyricsBtn.addEventListener('auxclick', () => {
lyricsBtn.blur();
openEditor();
lyricsBtn.addEventListener('auxclick', (e) => {
// This event is first triggered when right-clicking in Firefox
if (e.button === 1) {
lyricsBtn.blur();
openEditor();
}
});
lyricsBtn.addEventListener('click', async () => {
lyricsBtn.blur();
Expand Down

0 comments on commit f4bb0be

Please sign in to comment.