PHPStorm can't accept any input from keyboard after Find Occurrence
Solution 1
After asking PhpStorm Support, I was suggested to use other type of JDK. He said because of a known bug for OpenJDK that should be fixed in the next minor IDEA release
Here is the link related http://youtrack.jetbrains.com/issue/IDEA-79312
Then I tried to change using IBM JDK, but the problem still occured, and even make phpstorm quite slow. Step by step how to (note this dont solve my problem, just FYI) : http://www.wikihow.com/Install-IBM-Java-on-Ubuntu-Linux
From my point of view, PHPStorm has some problem with OpenJDK with different behavior. Mine is as I stated in my question. In addition, this problem happen not only after Find Occurence or using keyboard shortcut, but happen when I did nothing, it just happen pretty often.
Next I tried with oracle JDK, suggested with above link. Step by step how to : http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux
Then the problem didn't occur again, after I have tested using a day without problem, so I write this answer.
Good Luck
Solution 2
Try this
sudo ibus restart
Answer from here...https://askubuntu.com/questions/416504/phpstorm-losing-keyboard-input#answer-420131
This may switch your keyboard input by the way so reselect your keyboard input in the Ubuntu toolbar (I set mine to En1)
Not sure what causes this though, I'm using Guake and Compiz and have seen these tools behave a bit odd sometimes
Solution 3
IBUS_ENABLE_SYNC_MODE=1 ibus-daemon --replace &
worked for me. You don't have to run ibus restart
every so often.
Solution 4
A compilation of some other fixes
-
add next line to /{path_where_phpstorm_is_installed}/bin/idea.properties and restart.
actionSystem.suspendFocusTransferIfApplicationInactive=false
another option is to use Jdk 6 as it has low probability to happend
-
find next line at the end of bin/phpstorm.sh
Run the IDE
add next this lines
XMODIFIERS="" export XMODIFIERS
The ibus restart solution was a temporarly solution to me as every 5 minutes (Ubuntu 15.05 with phpStorm 9) the problem ocurred again (It happens when you switch between windows Ctrl + tab).
Comments
-
735 almost 2 years
I'm using PHPStorm 7.0 in Ubuntu 13.10
I have problem after run command "Next Occurence" / "Prev Occurence" via keyboard shortcut "Ctrl + Alt + Down Arrow", I can not type any word or run any shortcut again in PHPStorm in any view (editor, Project, Favorite, etc), like PHPStorm ignored my keyboard input. But fortunately it still can accepted mouse input, so I still can save my works, then I restarted it & back to normal.
In my Ubuntu I have modified 2 keyboard shortcuts,
Ctrl + ALt + Down to Disabled
Ctrl + ALt + Up to DisabledIs this problem with PHPStorm or Ubuntu?