Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

修复按下空格键有时无法播放/暂停的问题 #870

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

Richasy
Copy link
Owner

@Richasy Richasy commented Mar 21, 2022

Close #683

  1. 在播放器视频状态更改时(缓冲/播放/暂停等)重置播放按钮焦点
  2. 在进入全窗口/全屏/小窗播放时,每5s重置一次焦点

PR 类型

这个 PR 的目的是什么?

  • Bug 修复

当前行为是什么?

焦点转移后,按下空格键无法被视作点击播放按钮

新的行为是什么?

并不将空格键与播放按钮强关联,而是通过焦点转移的方式,让焦点在绝大多数情况下都会在播放按钮上,同时避免干预正常的键盘导航。

PR 检查清单

请检查你的 PR 是否满足以下要求:

  • 应用成功启动
  • 文件头已经被添加至所有源文件中
  • 包含破坏式更新

备注

@Richasy Richasy added the bug 🐛 异常或错误使得应用不能按预期工作 label Mar 21, 2022
@Richasy Richasy merged commit 405ac4f into main Mar 21, 2022
@Richasy Richasy deleted the richasy/fixPlayButtonFocus branch March 21, 2022 12:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 异常或错误使得应用不能按预期工作
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]媒体播放控件bug,无法使用空格暂停或继续播放
1 participant