After enabling the InputMethods in JFXPanel the twkGetInsertPositionOffset is needed.
Currently it returns the offset of the insert position in the text and this offset includes the uncommitted text. However, the JDK IM implementation expects it to return the offset of the insert position excluding the uncommitted text.
As this method is only used for InputMethod support in the JFXPanel I propose to change it to return the value needed by JDK. The possible patch is attached. I could not check the patch as I cannot build WebView.
Currently it returns the offset of the insert position in the text and this offset includes the uncommitted text. However, the JDK IM implementation expects it to return the offset of the insert position excluding the uncommitted text.
As this method is only used for InputMethod support in the JFXPanel I propose to change it to return the value needed by JDK. The possible patch is attached. I could not check the patch as I cannot build WebView.