1. 问题:
输入法位置不对的,不再输入的位置,跑偏
2.原因:
源码bug ,CEF(2272) 版本已做了修复,通过官网提供的修复记录,修改2171存在的问题。如果有cef(2171)源码可按照3步骤做修改,再编译成库文件。
如果没有源码直接下载4 提供的下载地址下载编译好的cef库文件
3.源码修改:
src\ui\base\ime 该目录下 ,input_method_win.cc 文件修改蓝笔勾画的行为红笔勾画的行
bool InputMethodWin::IsWindowFocused(const TextInputClient* client) const {
if (!client)
return false;
HWND attached_window_handle = GetAttachedWindowHandle(client);
// When Aura is enabled, |attached_window_handle| should always be a top-level
// window. So we can safely assume that |attached_window_handle| is ready for
// receiving keyboard input as long as it is an active window. This works well
// even when the |attached_window_handle| becomes active but has not received
// WM_FOCUS yet.
//- return attached_window_handle && GetActiveWindow() == attached_window_handle;
// With CEF |attached_window_handle| may be a child window.
return attached_window_handle && GetActiveWindow() == ::GetAncestor(attached_window_handle, GA_ROOT);
}
4.修复bug,编译后的库文件
本文提供了解决输入法位置偏移问题的解决方案,包括源码修复和下载编译修复库文件的方法。详细介绍了如何修改源码中的input_method_win.cc文件,并提供了修复后的CEF库文件下载链接。
823

被折叠的 条评论
为什么被折叠?



