Editor pane loses focus (e.g., quick documentation)

已回答

Hi all,

Since one of the recent updates I've been having issues with focus on the editor pane. I can reproduce the problem as follows:

- typing in the editor window

- showing quick documentation when cursor is on a parameter (using CTRL+Q)

- pressing escape to close that popup

- at that point, focus is not returned to the editor pane

I think i've had the problem in other instances as well, but cannot recall the specific situations. Is there a solution for this behaviour? I'm running IDEA 2018.1.4, build 181.5087.20. Also, running the IdeaVim plugin (that's the only thing custom as far as I know).

 

Thanks!

5

Please see https://youtrack.jetbrains.com/issue/IDEA-191839. 2018.1.5 RC version with the fix will be available this week at https://confluence.jetbrains.com/display/IDEADEV/IDEA+2018.1+EAP. Or you can try 2018.2 EAP version from https://www.jetbrains.com/idea/nextversion which does not have the issue.

1
Avatar
Permanently deleted user

All right, thanks Andrey! Good to know it's a bug, I can get away with some patience then :).

0
Avatar
Permanently deleted user

I am running 2018.2.5 and still experience this behavior.

0

@Spelta then you issue is different. Please elaborate more on the steps and your environment (OS, IDE version) and what exactly happens. Thanks.

0
Avatar
Permanently deleted user

Running Linux (Ubuntu 18.04), with the i3wm desktop environment. IDE version is 2018.2.5 (Ultimate Edition), Build #IU-182.4892.20; with ideavim plugin (the behavior doesn't change if I disable it though).

Whenever I am editing and I leave the IDE to switch to another window; then get back to it, the editor pane loses its focus and I have to click in it (or use the ctrl-f; ESC workaround) to be able to type again.

Thanks

1

Sounds like https://youtrack.jetbrains.com/issue/IDEA-194124. How do you bring the focus back to IDE?

Try if it helps to add suppress.focus.stealing=false via Help | Edit Custom Properties action and restart IDE.

10
Avatar
Permanently deleted user

to bring focus back to the IDE I had to enter CTRL-f and then ESC to leave the "find" window. Then the focus returned.
Or, I had to click in the editor with the mouse. Either option, as you can guess, were very uncomfortable :-D

Adding that custom property solved the issue though!

I hope no side effects will show up though.


Thanks,

1
Avatar
Permanently deleted user

@Andrey thank you so much! I had the same problem and this fixes it. It has been bugging me for months and now its fixed thanks to you.

0

I can confirm that the fix posted by @andrey works for Intellij Ultimate.

How can I enable this in WebStorm, as I have a all product license? 

Edit: No, its not working with Gradle. Gradle-pane steals the focus after every typing pause, makes intellij unuseable.

Edit: this worked for me: https://www.reddit.com/r/i3wm/comments/6zqg8q/popups_in_intellij_and_i3_finally_found_a_solution/

1
Avatar
Permanently deleted user

Yes!
I also confirm that adding: suppress.focus.stealing=false 

in the Help | Edit Custom Properties 

fixes the missing cursor issue when re-focusing under the i3 tiling windows manager.

Thanx Andrey Dernov

4
Avatar
Permanently deleted user

Adding

focus_follows_mouse no

to my i3 config (as found in Alexander Weihers URL: https://www.reddit.com/r/i3wm/comments/6zqg8q/popups_in_intellij_and_i3_finally_found_a_solution/) fixed the problem for me. Thank you a lot!

-1
Avatar
Permanently deleted user

Adding this to custom properties solves the problem:

 

suppress.focus.stealing=false 

1
Avatar
Permanently deleted user

I'm having this issue on CLion 2019.3, but constantly as in:

- Start typing function name;

- Autocomplete window pops up;

- Press Enter to choose function;

- Text cursor is gone and I can't type no more. I can use backspace to delete and arrows to move line focus up/down.

 

suppress.focus.stealing=false hasn't fixed the issue.

 

I'm using Sway window manager.

 

EDIT: changing jre 1.8.0_202-release-1483-b53 fixes the issue.

1
Avatar
Permanently deleted user

Hello Abilio Costa,

This is a known issue on Sway: https://youtrack.jetbrains.com/issue/JBR-1822

Please, vote and follow for updates. If you are not familiar with YouTrack, see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications

1
Avatar
Permanently deleted user

@... Thanks for pointing that out!

0
Avatar
Permanently deleted user

I'm still experiencing  this problem but exclusively in Android Studio (I use intellij, pycharm and goland, there it is not a problem)

I tried

suppress.focus.stealing=false

and also set focus_follows_mouse no

in my i3 config.

It is really annoying. I now try to develop in intellij and only do the android specifc tasks in android studio. Not optimal.

This occurs in Android Studio 4.1

 

Android Studio 4.1
Build #AI-201.8743.12.41.6858069, built on September 23, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-157-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: IdeaVIM, com.cursiveclojure.cursive
Current Desktop: i3

0

The fact that "suppress.focus.stealing=false" does not help tells that the issue is different. Please elaborate more on the steps performed. 

As a general troubleshooting step, please change runtime to JBR 11 ( JBR 1.8 is used now). Here are the instructions: https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under

0

请先登录再写评论。