Skip to content

Commit

Permalink
feat: auto focus player
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMinds committed Mar 10, 2024
1 parent e8c34db commit f921a1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web/src/views/Player/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ onMounted(async () => {
dPlayer.value = dp
// TODO: 不知道为啥没效果,之后调查看看。
dp.play()
dp.focus = true
dp.fullScreen.request('web')
document.addEventListener('keydown', keyHandler)
Expand Down

0 comments on commit f921a1a

Please sign in to comment.