salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.2k stars 365 forks source link

you cannot enter Chinese in Linux. #459

Closed jwj76 closed 1 year ago

jwj76 commented 1 year ago

In Linux, you cannot enter Chinese in Linux. In Linux, it is not possible to input Chinese characters directly. It seems that cef4delphi intercepts keyboard input. Even after bringing up the Chinese input method, the keyboard input is still in English and is not first processed by the operating system's input method. Test versions 109.0.5414.120 111.0.5563.148

salvadordf commented 1 year ago

There are several open issues in CEF about the IME and the Chinese language.

Please, test this issue with the official CEF sample application and post the results.

jwj76 commented 1 year ago

When running cefsimple --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu, it is possible to input Chinese characters. However, after compiling example Lazarus_Linux_GTK2/SimpleBrowser in Lazarus, I am unable to input Chinese characters.

jwj76 commented 1 year ago

How to set up Lazarus to support Chinese input? Could you please give an example?

salvadordf commented 1 year ago

I'm not part of the development team of Lazarus. Please, post the Lazarus related questions in the Lazarus forum.

jwj76 commented 1 year ago

Okay, we need to use g signal Connect to associate key press event, key release event, and commit signals to process the input method.