Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Complete keyboard block in IntelliJ 13

Sometimes when running IntelliJ it completely blocks all keyboard inputs in the program. E.g. I can click around a document with the mouse, I can even right click + paste. I cannot, however write anything through the keyboard or navigate with the arrows inside a document or between documents for that matter.

The only keyboard related actions that work seem to be system related; alt + tab, ctrl + alt + delete, caps lock etc. also when tabbing to another window the keyboard works fine, so it is not a hardware issue.

This seem to occur when a popup is active and I tab out of IntelliJ and back in, but I am not certain that this is the case.

I would like to stress that it is not merely the currently open document that I cannot modify, since I CAN insert text and remove it using mouse commands only (the file is not write protected or anything like that), it seem to be a complete block of all keyboard inputs in IntelliJ.

The only workaround I have found is to restart IntelliJ.

I am running Ubuntu 13.10. More or less all projects I work with in IntelliJ are maven projects. It happens roughly once a day when using IntelliJ as main IDE.

like image 562
abondoa Avatar asked May 06 '14 16:05

abondoa


People also ask

How do I enable code completion in IntelliJ?

Start typing. By default, IntelliJ IDEA displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Shift+Space or choose Code | Code Completion | Type-Matching from the main menu. If necessary, press Ctrl+Shift+Space once again.

What does Ctrl Shift F do in IntelliJ?

In past IntelliJ versions, ctrl+shift+f would search the entire project (no matter whether you had at some point used "find in path").

How can I see all shortcuts in IntelliJ?

IntelliJ IDEA includes several predefined keymaps and lets you customize frequently used shortcuts. To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap. IntelliJ IDEA automatically suggests a predefined keymap based on your environment.

What does Ctrl Alt l do in IntelliJ?

If you choose Code | Reformat Code from the main menu or press Ctrl+Alt+L , IntelliJ IDEA tries to reformat the source code of the specified scope automatically. For more details on how to reformat, or exclude files from formatting, refer toReformat code.


1 Answers

This seems to be an IBus issue. The bug is not localized yet but it's clear it is not in IDEA - rather in IBus or possibly in Java X events handling code.

Workarounds:

  1. IBus can be disabled for IDEA by unsetting env. variable XMODIFIERS. So, add the following lines to $IDEA_HOME/bin/idea.sh at almost the end of the file:
 ...

XMODIFIERS=idea.sh
export XMODIFIERS

# ---------------------------------------------------------------------
# Run the IDE.
# ---------------------------------------------------------------------
...
  1. Have been reported that run ibus-daemon -rd is not recommended as it may cause JVM crash. However, it also seems to work.

http://youtrack.jetbrains.com/issue/IDEA-78860

like image 124
Camilo Silva Avatar answered Nov 15 '22 13:11

Camilo Silva