Skip to content

Fix:恢复 SQL 编辑器大小写转换快捷键 - #7193

Merged
t8y2 merged 1 commit into
t8y2:mainfrom
zipg:codex/fix-sql-selection-case
Aug 25, 2026
Merged

Fix:恢复 SQL 编辑器大小写转换快捷键#7193
t8y2 merged 1 commit into
t8y2:mainfrom
zipg:codex/fix-sql-selection-case

Conversation

@zipg

@zipg zipg commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

修改说明

  • 修复 macOS 下 Shift+Alt+UShift+Alt+L 无法转换 SQL 选区大小写的问题
  • 修复快捷键设置录入时,Option 组合导致 UL 被保存成变形字符的问题
  • 单段快捷键复用现有物理键位匹配逻辑,兼容 Option 改写 KeyboardEvent.key 的情况
  • 保留自定义多段快捷键、右键菜单和原有 SQL 字面量处理行为

测试

  • 网页实测:选中 SQL 后,大写/小写快捷键均生效,选区保持不变,字符串字面量内容不被转换
  • 网页实测:快捷键设置中录入 Shift+Option+U 后显示为 ⇧ ⌥ U
  • 网页实测:无选区时不会误输入 Option 特殊字符,右键菜单转换仍正常
  • pnpm exec vitest run(5 个相关测试文件,71 项通过)
  • pnpm typecheck
  • pnpm lint
  • pnpm build

Fixes #7191

@github-actions github-actions Bot added area/desktop Desktop application or Tauri shell bug Something isn't working ui-change Changes user-visible interface, text, or visual assets labels Aug 25, 2026
@zipg
zipg marked this pull request as draft August 25, 2026 15:08
@zipg
zipg force-pushed the codex/fix-sql-selection-case branch from 6c917e0 to 4248ee2 Compare August 25, 2026 15:36
@zipg
zipg marked this pull request as ready for review August 25, 2026 15:43
@t8y2
t8y2 merged commit 771a7f0 into t8y2:main Aug 25, 2026
16 of 17 checks passed
@t8y2

t8y2 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution! Merged in 771a7f0, will be released in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/desktop Desktop application or Tauri shell bug Something isn't working ui-change Changes user-visible interface, text, or visual assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] TAB补全、大小写转换失效

2 participants