PhpStorm Unknown keyCode: 0x0

╄→гoц情女王★ 提交于 2019-12-22 07:59:27

问题


When I trying to use default keymaps like Ctrl-C, Ctrl-V, etc. they not working.

When I trying to map custom keymap, I get error by pressing on character keys:

Unknown keyCode: 0x0

What it can be? I tried to install Java 1.6, 1.7, same thing.

PS: Using Fedora 19

EDIT

My default lang is English. But playing with keyboard settings of XFCE made it work oO. Issue with keyboard layouts.. Thanks


回答1:


  1. What's your primary keyboard layout. Make sure it's English and not Russian.

  2. Try adding -Dide.non.english.keyboard.layout.fix=true into your idea.properties file.

Actual ticket for further reference: http://youtrack.jetbrains.com/issue/IDEA-80613




回答2:


Changing the main keyboard layout from XFCE settings to English(Macintosh) worked for me! (after long struggle)

You might need to play with the keyboard layout variant to match your physical keyboard

Tested with Oracle Java 1.7 on Debian 64bit (Jessie)




回答3:


As a temporary workaround:

Copy from here https://github.com/zheludkovm/LinuxJavaFixes two files:

LinuxJavaFixes-1.0.0-SNAPSHOT.jar 
javassist-3.12.1.GA.jar

Add the following line to JVM options: -javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar

For example, you can add this lines to ~/.profile

_JAVA_OPTIONS="-javaagent:[path to directory with jar files]/LinuxJavaFixes-1.0.0-SNAPSHOT.jar"
export _JAVA_OPTIONS

Thanks zheludkovm and Sergey Komarov



来源:https://stackoverflow.com/questions/21135661/phpstorm-unknown-keycode-0x0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!