When creating the JCEF browser, the page cannot use the numeric keypad after OSR is enabled

Answered

platformType = IC platformVersion = 2023.2.5

Please review the procedure:

  1. Create a JCEF private val htmlPanelComponent = JCEFHtmlPanel( JBCefApp.isOffScreenRenderingModeEnabled(), null, null)
  2. I created the file editor and returned the resulting browser component
  3. I created a React project, simply wrote an input box on the page, and packaged the React project to build
  4. Use CefApp. GetInstance (). RegisterSchemeHandlerFactory parsing React after the building project resources 

Concrete problem:

  1. After the JCEF(OSR) browser created using the above steps, the number lock on the keyboard cannot be opened to enter numbers using the number keys
  2. Cannot enter Chinese when using Microsoft Pinyin input method Do I need to use CefSettings() to set the configuration parameters? Please help me solve these two problems, thank you!

0
2 comments

Hi mahu!

At the time of the 2023.2.5 release, keyboard support was very limited and input methods did not work. 

It's got much better in newer versions. 

The only solution for 2023.2.5 is to not use OSR if keyboard input is crucial for the plugin.

0
  • Thank you very much, I decided to use the higher version, thanks again for your answer
0

Please sign in to leave a comment.