phpStorm losing keyboard input

21,175

Solution 1

You should look at this bug here: http://youtrack.jetbrains.com/issue/IDEA-79312

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

sudo ibus restart

Hope that helps!

Solution 2

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.

Share:
21,175

Related videos on Youtube

neolaser
Author by

neolaser

Updated on September 18, 2022

Comments

  • neolaser
    neolaser over 1 year

    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

    • phazei
      phazei over 8 years
      This is still experienced in Ubuntu 14.04.3 phpStorm 9.0.2
    • Goddard
      Goddard over 8 years
      phpStorm is a paid app. Don't they support their software? This isn't really anything to do with Ubuntu I don't think.
    • ruuter
      ruuter about 8 years
      @Goddard this is not just phpStorm nor Ubuntu issue. It is X window/ Ibus problem with any Jetbrains product really.
  • STW
    STW over 9 years
    Sweet, fixes it for me and much quicker than a restart
  • Mat
    Mat over 9 years
    Watch out latin keyboard people, it worked for me but made my keyboard switch to QWERTY. Had to input in a terminal the "setxkbmap fr" command to make it AZERTY again.
  • Gtx
    Gtx over 9 years
    @STW but the problem still exists and it's keep loosing focus
  • STW
    STW over 9 years
    @Gtx - yep, it's not a fix but it will regain keyboard input (at least for a while). It's best to give feedback to Jetbrains so they'll hopefully work on a fix.
  • igorsantos07
    igorsantos07 over 8 years
    this makes your keyboard layout swedish. This should NOT be an answer for this case.
  • themhz
    themhz over 8 years
    This worked for me to, but I always need to run that command again to regain my keyboard input later. Is there a way to trigger that command when the keyboard lose focus?
  • ruuter
    ruuter about 8 years
    @igorsantos07 This restarts ibus and resets KB locale to swedish yes, but you can change it to whatever KB layout you have. Point is, restarting ibus will reset you KB layout to default, english mostly.
  • ruuter
    ruuter about 8 years
    Seems like the correct issue for OP is actually this: youtrack.jetbrains.com/issue/IDEA-78860
  • tokam
    tokam almost 5 years
    root@myhost:~# sudo ibus restart Keine Verbindung zu IBus.
  • Philip Z.
    Philip Z. almost 4 years
    With sudo I get "Can't connect to IBus." Without sudo it works thank you!