intellij plugin in java and i am using JCEF error java.lang.IllegalArgumentException: invalid keyCode

已回答

I am developing a intellij plugin in java and i am using JCEF to diaplay some ui (using index.js). But, while typing any keystroke i get the below error in console. 

 

Exception in thread "Thread-644" java.lang.IllegalArgumentException: invalid keyCode
    at java.desktop/java.awt.event.KeyEvent.<init>(KeyEvent.java:1186)
    at com.intellij.ui.jcef.JBCefEventUtils.convertCefKeyEvent(JBCefEventUtils.java:41)
    at com.intellij.ui.jcef.JBCefBrowser$2.onKeyEvent(JBCefBrowser.java:258)
    at com.intellij.ui.jcef.JBCefClient$9.lambda$onKeyEvent$1(JBCefClient.java:475)
    at com.intellij.ui.jcef.JBCefClient$HandlerSupport.lambda$handle$0(JBCefClient.java:725)
    at java.base/java.lang.Iterable.forEach(Iterable.java:75)
    at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2131)
    at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handle(JBCefClient.java:725)
    at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handleBoolean(JBCefClient.java:730)
    at com.intellij.ui.jcef.JBCefClient$9.onKeyEvent(JBCefClient.java:474)
    at jcef/org.cef.CefClient.onKeyEvent(CefClient.java:591)

0

Hi,

Please share the sources and steps for reproducing the issue. Also, provide information like operating system and IDE version.

0

请先登录再写评论。