Skip to content

feat(platform/windows): support ime rect#22

Merged
cloudwu merged 1 commit intocloudwu:masterfrom
yuchanns:feat/support-ime-rect-windows
Oct 7, 2025
Merged

feat(platform/windows): support ime rect#22
cloudwu merged 1 commit intocloudwu:masterfrom
yuchanns:feat/support-ime-rect-windows

Conversation

@yuchanns
Copy link
Contributor

@yuchanns yuchanns commented Oct 7, 2025

为 Windows 的输入框定位添加支持,效果如图:

image

同样需要在这个分支合并后,再到 deepfuture 调整 keyboard 逻辑来使用新增的 set_ime_rect

@yuchanns yuchanns force-pushed the feat/support-ime-rect-windows branch from 69f7802 to cff9d9f Compare October 7, 2025 05:01
@cloudwu cloudwu merged commit 649fe87 into cloudwu:master Oct 7, 2025
1 check passed
@yuchanns yuchanns deleted the feat/support-ime-rect-windows branch October 7, 2025 05:02
@cloudwu
Copy link
Owner

cloudwu commented Oct 7, 2025

没啥问题的话,可以向 deepfuture 提个 pr 加 set_ime_rect 了。

@cloudwu
Copy link
Owner

cloudwu commented Oct 7, 2025

windows 下 IME 输入有点问题:在 IME 输入时,如果不阻断 KEYDOWN/KEYUP 的消息,app 会收到 IME 编辑时的键盘消息,且自身无法正确处理控制按键,如 Backspace Left Right 等。

我让 WM_KEYDOWN/WM_KEYUP 在 IME 输入期间直接返回 TRUE 而不是调用 DefWindowProc 可以解决这个问题。 不知道其它系统是否有类似问题?@yuchanns

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.

2 participants