可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
While working in IntelliJ IDEA, the keyboard occasionally locks in a way that delete or < > ^ keys don't work properly anymore, in a way that delete doesn't do anything anymore, and the arrow keys scroll the entire source code / editor section.
I don't know if I am accidentially some kind of shortcut, but the only way I can get it back to normal again is closing and re-opening the IDE, which is annoying of course.
I'm on Mac OS X Lion, latest IntelliJ IDEA CE (11.1.1), but also had it before with the previous versions.
回答1:
Check idea.log
(Help | Reveal Log in ...) for exceptions. If you see PSI/document inconsistency before reparse
there, then you are probably affected by this bug.
If there are other exceptions not related to this bug, please send the log to JetBrains technical support.
回答2:
This answer on superuser.com worked for me:
ibus-daemon -rd
回答3:
Just turn off Vim Emulator from Tools like this picture:
回答4:
I am new to IntelliJ, and had the same problem of deleting by delete. But I just realised that IntelliJ is actually mimicing the keys in Vim.
For example, when some text is highlighted, pressing d deletes the text, pressing y copies (yanks) it, pressing p pastes (puts) it, and pressing i enters the editting (insert) mode.
For navigation, Ctrl+f navigates to the next screen, Ctrl+b navigates to the previous screen, and Shift+g navigates to the end of the file.
All are same as in Vim.
回答5:
I faced same issue,
Environment:
IDEA 14.1.4 on Ubuntu Gnome 15.04
Solution :
I work with default keymaps, but some reason default keymap was not working. Hence I removed 'IdeaVim' plugin and restarted the IDE, everything works fine now. File > Settings > Plugins
and look for the plugins.
回答6:
I have the same issue periodically, which is a pain because IntelliJ takes so long to load in the first place, then I need to close it and start all over again!
I don't have "PSI" anywhere in my IntelliJ logs. I'll be sending my logs off to IntelliJ; hopefully they can fix this ASAP as it is a major time waster!
Other things I've tried:
- Changing the current keymap - arrow keys don't work in any keymaps
- Closing and reopening just the project - issue persists until IntelliJ itself is closed and reopened.
- Trying other keys - It seems like Ctrl and Command are completely ignored by the IDE once it gets in this state. Of course, all the text entry keys still work, so you can type, just can't change cursor position using anything but the mouse and menu bar. In a pinch, one could work like this for a short period of time, but that would entail a significant masochist streak!
回答7:
There is a an open issue in jetbrains youtrack for intellij idea that recommend two solutions:
- Keyboard input may be unlocked by restarting IBus daemon ("ibus-daemon -rd" from a console).
- IBus can be disabled for IDEA by unsetting env. variable XMODIFIERS (e.g. "XMODIFIERS= idea.sh"), but ability to input national characters in IDEA will be lost.
I have used the second one and fixed my problem.
回答8:
You may need to update your plugins. They can cause strange behavior if they are out of date.
http://www.jetbrains.com/idea/webhelp/installing-updating-and-uninstalling-repository-plugins.html
回答9:
If you do ibus restart
, you'll get a qwerty keyboard. For french users, you can do :
ibus restart; sleep 1; ibus engine xkb:fr::fra
I suppose you can change fr::fra
by ru
or us:dvorak:eng
回答10:
I had the same issue when upgrading to IntelliJ 14.1.4.
If you have the IdeaVim plug-in installed, try disabling it. That worked for me.
Reference
回答11:
In my case backspace didn't work but only in terminal. I fixed it by going
Preferences -> Terminal -> Check "Override IDE shortcuts"
回答12:
Same problem for me today. My solution was to unplug and plugin the usb keyboard on my MacBook. Hope it helps.