Recent

Author Topic: Unable to input Chinese when developing applications under Linux using cef4Delph  (Read 911 times)

myisjwj

  • Jr. Member
  • **
  • Posts: 69
When running cefsimple  --no-sandbox , it is possible to input Chinese characters. However, after compiling example Lazarus_Linux_GTK2/SimpleBrowser in Lazarus, I am unable to input Chinese characters.

myisjwj

  • Jr. Member
  • **
  • Posts: 69
用gtk_im_context_filter_keypress(Context, Event);可以发送键盘事件给输入法。但用gtk_im_context_get_preedit_string(Context, @Preedit, Attrs, @CursorPos);和gtk_im_context_get_surrounding(Context, @SurroundingText, @SurroundingLength); 得到的都是空。请问有人能解决吗。

myisjwj

  • Jr. Member
  • **
  • Posts: 69
gtk_im_context_get_preedit_string可以得到字符了。要放在keyup事件中。但时gtk_im_context_get_surrounding无法得到字符,还不能用数字选词。请问有人解决了问题吗?现在用的cef4delphi版本是87版的。

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
用gtk_im_context_filter_keypress(Context, Event);可以发送键盘事件给输入法。但用gtk_im_context_get_preedit_string(Context, @Preedit, Attrs, @CursorPos);和gtk_im_context_get_surrounding(Context, @SurroundingText, @SurroundingLength); 得到的都是空。请问有人能解决吗。

Please only post in English or at least include a translation through e.g. Google Translate.

 

TinyPortal © 2005-2018