PhpStorm Losing Keyboard Input

PhpStorm Losing Keyboard Input

Every now and again phpStorm will lose input from my keyboard. I can still click around, but it will not register any keys. Other windows are fine. It takes a phpStorm restart to bring them back. It seems to happen most when I Control+Tab between open tabs

I am running: Ubuntu 13.10 phpStorm 7.1 JRE 1.7.0_51

3

5 Answers

You should look at this bug here:

It's exactly your issue, and it has a potential workaround:

sudo ibus restart

Hope that helps!

8

Seems like the correct issue/bug for OP is actually this: IDEA-78860

This is not a Ubuntu version specific, but X Window / IBus problem and it is still happening in Ubuntu 14.04 with IBus < 1.5.11

Option 1:
Update IBus to 1.5.11 or higher Check this answer on how to update ibus on ubuntu

Option 2:
Official workaround, is to add following line to your ~/.profile

export IBUS_ENABLE_SYNC_MODE=1

Remember you have to restart your session (logout) for this to take effect.

Option 3:
The most universal workaround is still ibus restart, but I think it is worth to quote the assignee of the issue:

Restarting IBus isn't recommended (may crash the IDE later)

Yes, that may happen sooner or later. Also this resets your keyboard layout to default (mostly english). So you'd have change that back every time you restart ibus.

Another option is to disable ibus, but this really is not a solution for people who do not have US kb layout.

i prevent this issue, by a changing "Keyboard input method system" (System settings > language support) from "IBus" to "none".

ibus restart && sleep 1 && ibus engine xkb:se::swe

worked for me

2

you can try removing the .idea folder at the root of your project, then try File → Invalidate cache and restart.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.