Skip to content

修复 Wallpaper Engine 桌面键盘输入穿透#74

Open
liruilong wants to merge 1 commit into
BeyondtheApex:mainfrom
Codes39:codex/fix-desktop-keyboard-bubbling
Open

修复 Wallpaper Engine 桌面键盘输入穿透#74
liruilong wants to merge 1 commit into
BeyondtheApex:mainfrom
Codes39:codex/fix-desktop-keyboard-bubbling

Conversation

@liruilong
Copy link
Copy Markdown

@liruilong liruilong commented May 17, 2026

背景

在 Wallpaper Engine 桌面模式下,当前键盘钩子会过早消费桌面键盘事件,导致桌面、资源管理器或其他系统输入场景无法正常接收按键。

改动

  • 桌面模式下默认放行键盘事件,保持系统桌面输入行为。
  • 只有游戏内 UIToolkit/TMP 输入框真正获焦时,才把键盘输入交给 ChillPatcher 处理。
  • 增加游戏内输入目标的焦点跟踪,避免未聚焦时误吞系统快捷键或文本输入。
  • 将保存档筛选里的大小写不敏感匹配改为目标框架支持的写法,避免 net472 构建失败。

行为影响

  • 桌面空白、桌面图标和其他系统窗口可以继续接收键盘事件。
  • 游戏内文本输入框获焦时,Rime/剪贴板/导航键等输入逻辑仍由 ChillPatcher 接管。

验证

  • dotnet build ChillPatcher.sln -p:SteamLibraryRoot=D:\Steam

关联 Issue

Closes #30

@liruilong liruilong changed the title fix(we): improve desktop input passthrough 修复 WE 桌面输入穿透 May 17, 2026
@liruilong liruilong force-pushed the codex/fix-desktop-keyboard-bubbling branch from 48af3cb to abcb620 Compare May 17, 2026 13:13
@liruilong liruilong changed the title 修复 WE 桌面输入穿透 修复 WE 桌面键盘输入穿透 May 17, 2026
@liruilong liruilong changed the title 修复 WE 桌面键盘输入穿透 修复 Wallpaper Engine 桌面键盘输入穿透 May 17, 2026
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.

壁纸化时的输入法问题

1 participant