When creating the JCEF browser, the page cannot use the numeric keypad after OSR is enabled
已回答
platformType = IC platformVersion = 2023.2.5
Please review the procedure:
- Create a JCEF private val htmlPanelComponent = JCEFHtmlPanel( JBCefApp.isOffScreenRenderingModeEnabled(), null, null)
- I created the file editor and returned the resulting browser component
- I created a React project, simply wrote an input box on the page, and packaged the React project to build
- Use CefApp. GetInstance (). RegisterSchemeHandlerFactory parsing React after the building project resources
Concrete problem:
- 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
-
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!
请先登录再写评论。
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.