http://blog.csdn.net/dslztx/article/details/46700165
Description of the problem:
In the Ubuntu environment, the keyboard in Intellij Idea fails, that is, there is no response when any key is pressed.
Normal operation is possible with the mouse.
Solution:
In Ubuntu environment, IBUS software is installed by default, this problem is caused by IBUS.
Then the solution is to not use IBUS in the idea. We can use the "XMODIFIERS" environment variable
to define the variable as follows:
To use XIM (X input method) server, users should set XMODIFIERS
environment variable.
For example, to use "ibus", users should set like 'XMODIFIERS="@im=ibus"'.
If you don't need to use the Chinese input method, you can now set "XMODIFIERS=idea.sh", and then add the above line setting statement to the "Run the IDE." statement in the idea.sh script.
If you need to use the Chinese input method, you can now set "XMODIFIERS="@im=fcitx"", and then add the above line setting statement to the "Run the IDE." statement in the idea.sh script.
The set content of idea.sh is as follows:
- XMODIFIERS=idea.sh #add this line
- export XMODIFIERS #add this line too
- # ---------------------------------------------------------------------
- # Run the IDE.
- # ---------------------------------------------------------------------
- while true ; do
- eval "$JDK/bin/java" $ALL_JVM_ARGS -Djb.restart.code=88 $MAIN_CLASS_NAME "$@"
- test $? -ne 88 && break
- done
http://blog.csdn.net/a__yes/article/details/51249077
Recently upgraded from Ubuntu14.04 to Ubuntu16.04, I can't switch the Sogou input method under IDEA, and I can't input Chinese. I can check it. The Internet says that Ibus can be used, but I used to use Sogou. Later, I found a solution.
Solution
Add in front of the idea.sh file in IDEA's bin directory
export XMODIFIERS = @im = fcitx
export QT_IM_MODULE=fcitx