Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加快捷键设置 #766

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

3DRX
Copy link

@3DRX 3DRX commented Mar 25, 2024

  • 在设置弹窗创建 tab
  • 用 shadcn/ui 表格显示当前快捷键
  • 修改快捷键 component
    • 创建 dialog
    • 通过监听 keydown/up 输入新快捷键
      • 监听 key event,根据输入更新快捷键状态
      • 根据 keydown/up 得到真正的快捷键
    • 输入新快捷键时屏蔽已有所有快捷键
      • 屏蔽“按任意键”以开始(传参数到 event listener 函数所在组件里加个条件判断)
      • 屏蔽 typing 页面使用 useHotkeys 设置的快捷键(传参数到对应组件中)
  • 快捷键键位状态管理
  • 键位存储 local storage 与导入导出
  • 除 Typing 页面以外其他页面的快捷键

Copy link

vercel bot commented Mar 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
qwerty-learner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 11:14pm

TODO: make or find a good approach to set hotkey.
@3DRX 3DRX marked this pull request as ready for review March 27, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant