CEF3(2171) 输入法位置不对的问题

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,编译后的库文件

http://pan.baidu.com/s/1kT6M6Pp

你可能感兴趣的:(CEF)