chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.37k stars 467 forks source link

Windows: IME not positioned correctly with embedded windowed browser when use touch focus #3391

Open magreenblatt opened 2 years ago

magreenblatt commented 2 years ago

Original report by CodeTruck (Bitbucket: CodeTruck, GitHub: CodeTruck).


I know there was already a issue (#3306) with mouse click issue solved. Here is the touch one.

I am using CEF developing a windows product that with a touch screen and keyboard(no mouse).

When using the Microsoft Pinyin on Windows, the IME window is not positioned next to the input field that has focus with touch on touch screen.

First configure for Chinese IME Microsoft Pinyin on windows 10 21H2:

  1. Windows Settings->Time & Language->Language, On the right, click Add a language.
  2. Choose a language to install, search Chinese, select Chinese (Simplified, China), click next. Install.
  3. In the Preferred languages list, select Chinese (Simplified, China), click Options, and under Keyboards, click Add a Keyboard, select Microsoft Pinyin.

Reproducing the problem:

  1. Download prebuilt cef binard from CEF Automated Builds (spotifycdn.com), I’ve tested with cef_binary_105.3.36+g88e0038+chromium-105.0.5195.102_windows32_client
  2. Extract files to a folder, and run cefclient.exe
  3. In the Language bar on the desktop or select under taskbar tray, change the input language to Chinese, Microsoft Pinyin
  4. Touch Click in the page’s bing search box, type aaa and press space, Microsoft Pinyin will input three chinese characters, and IME window positioned correctly.
  5. Touch Click in the cefclient demo’s address bar, and type aaa and press space, Microsoft Pinyin will input three chinese characters, and IME window positioned correctly.
  6. Touch Click in the page’s bing search box, type aa, the IME window not positioned correctly.(on the left top of screen)

magreenblatt commented 2 years ago

Original changes by CodeTruck (Bitbucket: CodeTruck, GitHub: CodeTruck).


Matrixbirds commented 1 year ago

I'm stumbled with IME case on windows system.The origin issue #3391 which removed from bitbucket is already limited. image.