weasel icon indicating copy to clipboard operation
weasel copied to clipboard

fix: avoid input issues in some apps

Open CDHJS opened this issue 1 year ago • 4 comments

注释掉了Composition.cpp中的pRangeComposition->SetText(ec, TF_ST_CORRECTION, L" ", 1); https://github.com/rime/weasel/blob/0ef3154e489eed1176e9ca3a2e5f244fc0c1cf0f/WeaselTSF/Composition.cpp#L55 可避免Firefox系浏览器部分情况无法输入问题 #1144 可能也能解决 #1406 所提到的部分问题

CDHJS avatar Oct 26 '24 15:10 CDHJS

https://github.com/rime/weasel/blob/0ef3154e489eed1176e9ca3a2e5f244fc0c1cf0f/WeaselTSF/Composition.cpp#L48-L53

这个空格是什么情况下有用?我试着去掉空格编译了一下,Chrome、Notepad 等应用都是正常定位的,是有些应用不行吗 @fxliang

mirtlebot avatar Oct 28 '24 06:10 mirtlebot

https://github.com/rime/weasel/blob/0ef3154e489eed1176e9ca3a2e5f244fc0c1cf0f/WeaselTSF/Composition.cpp#L48-L53

这个空格是什么情况下有用?我试着去掉空格编译了一下,Chrome、Notepad 等应用都是正常定位的,是有些应用不行吗 @fxliang

这个旧代码一直都是空格,我是试过改成零宽空格但是不太好用后来又改回空格了。

fxliang avatar Oct 28 '24 11:10 fxliang

如果要合并,这个_inlinePreeditEnabled就是没有用的状态了,还有下面的一个位置也是要调整。其他,我觉得再观察一段时间再看? 另外我试过一下firefox的设置窗口里面,这样一样没有解决问题的,Windows 10 64bit

fxliang avatar Nov 19 '24 04:11 fxliang

如果要合并,这个_inlinePreeditEnabled就是没有用的状态了,还有下面的一个位置也是要调整。 其他,我觉得再观察一段时间再看? 另外我试过一下firefox的设置窗口里面,这样一样没有解决问题的,Windows 10 64bit

在我的系统上(Windows 10 22H2)Floorp 11.20.0 (64 位) | Firefox: 128.5.0和Firefox 132.0.2设置界面都正常打字且定位正常,使用GitHub Actions的编译。 至于其它需要调整的内容,我并不会C++,我只是找到出错的地方并注释掉了

CDHJS avatar Nov 19 '24 10:11 CDHJS