Skip to content

feat(hotkey): 支持纯修饰键组合的听写快捷键 - #1102

Closed
leolulu wants to merge 1 commit into
Open-Less:betafrom
leolulu:feat/modifier-only-dictation-chords
Closed

leolulu wants to merge 1 commit into
Open-Less:betafrom
leolulu:feat/modifier-only-dictation-chords

Conversation

@leolulu

@leolulu leolulu commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

摘要

支持将多个修饰键本身作为听写快捷键,例如 Ctrl + Win。

Fixes #1097

Typeless 本身也使用 Ctrl + Win 作为听写快捷键。支持这一组合后,从 Typeless 迁移到 OpenLess 的用户可以继续沿用原来的操作习惯,减少切换输入工具时的习惯成本。

新增 / 改进

  • 增加 side-specific modifier-only chord 支持,例如 Left Ctrl + Left Win
  • 继续复用现有的 side-aware modifier 监听和按键状态处理逻辑,没有另外引入一套快捷键机制
  • 保留原有单修饰键、修饰键 + 普通按键的行为
  • 当继续按下普通按键时,例如 Ctrl + Win + D,沿用现有 companion-key cancel 机制,避免影响 Windows / 应用本身的组合快捷键
  • 快捷键录制仍兼容 Ctrl + Win + D 这类普通组合键,不会因为新增 Ctrl + Win 而提前截断录制

兼容

  • 不包含:

    • 不修改 ShortcutBinding 数据结构
    • 不改变空 primary 的原有语义
    • 不修改普通 global-hotkey 的处理方式
    • 不扩展到 QA、翻译、切换 Style、打开应用等其他快捷键
  • 对现有用户 / 本地环境 / 构建流程的影响:

    • 现有快捷键配置保持兼容
    • 无 preference schema 变更,无 migration
    • 平台支持范围保持不变

测试计划

@appergb

appergb commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

内容已随 2.0.0-Beta.3 集成进入 beta 分支(提交 51f6f4c,纯修饰键听写快捷键与 Core 仲裁窗口均包含),代码已实际合入,此处补关并随 v2.0.0-Beta.3-tauri 发布。修复的 #1097 一并关闭。感谢贡献!

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.

[Windows] Support Ctrl + Win as recording hotkey

2 participants