Reputation: 531
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 Disabled
Is this problem with PHPStorm or Ubuntu?
Upvotes: 32
Views: 15129
Reputation: 4959
just try :
LEFT Alt+Enter
LEFT Alt+Enter
Looks like some languages override Right Alt behavior, at least in case of Lithuanian Left Alt is working fine with Lithuanian enabled, Right does not, when switch to English, everything is fine again. Was pulling hair to figure out why out of nowhere it stops working, thanks
Upvotes: 0
Reputation: 1
You have 2 ways to fix this: one is to set your DE to start the ibus daemon as you log in or edit your /bin/phpstorm.sh and add at beginning "export XMODIFIERS=" :
#!/bin/sh
#
# ---------------------------------------------------------------------
# PHPStorm startup script.
# ---------------------------------------------------------------------
#
export XMODIFIERS=""
Serves for any JetBrains app by editing the corresponding .sh
Upvotes: 0
Reputation: 1147
IBUS_ENABLE_SYNC_MODE=1 ibus-daemon --replace &
worked for me. You don't have to run ibus restart
every so often.
Upvotes: 15
Reputation: 2508
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).
Upvotes: 6
Reputation: 5721
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
Upvotes: 23
Reputation: 11
Yes, I also have this issue. I've installed Oracle Java. I had this situation when i open popup(for example settings) and next change window alt+tab. When I return to phpstorm then i can't typing. So now I try not to invoke this situation. I also noticed five minut ago :) that there is no necessity to restart phpstorm after this issue just enough to again change window alt+tab and now i can type again.
Update after @Taryn East comment:
Hi, sory but my answer was solution not "me too" case.
Then in simple words the solution is:
Try use alt+tab twice(change window and back again). After this the problem should disappear.
Upvotes: 0
Reputation: 768
I had a similar issue when switching tabs with alt+TAB. Very often it'd make the keyboard unresponsive and the only thing that helped was to restart PHPStorm. I've tried a different JDK and it didn't help neither. My laptop is T430 running Ubuntu 13.10. I was running of the default graphic Nouveau driver. Then I switched to proprietary nvidia driver and it's been a few days and the issue hasn't occurred anymore (before it'd happen like 10-15x a day). The only other thing I was doing was making suspend and hibernate work (with TuxOnIce)...not sure if it's related. So I'm suspecting the graphic driver change helped.
Michal
Upvotes: 0
Reputation: 531
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
Upvotes: 8