IntelliJ requires two clicks before what you clicked on has focus

For example, have split view (or two groups or whatever it's called, I mean two files viewable and editable at once). Edit the left file. Then leave the IntelliJ window and do something in a webbrowser for example. Then click with the mouse somewhere in the right file with the intention to place the cursor there. But instead it gives the focus to the left file...

Same when having only a single file in view, but with for example other controls like the search or tree...

In normal programs, clicking on a text control immediatly puts the cursor there, even if another program had focus.

Is this a bug, and is it known already? It is annoying in any case.

I'm using version 9 on Linux.

Thanks!

7 comments
Comment actions Permalink

This is often causing me to accidently commit code with random single letter characters typed in random files, due to the focus problem where one thing has focus while I clicked on another.

Is there any possibility to fix this at all?

Is it technically possible to hack some kind of plugin together that would somehow make this focus management better?

Thanks.

0
Comment actions Permalink

I think this is a widely spread annoyance. There are a lot of applications out there having this behaviour, e.g. Lotus Notes. The first click only activate the application window and is not recognized by the application. The second click is then registered by the application and does the focus selection in the application.

This may be useful in some cases -- if you intend to activate the window and not change the focus. Normally you have to search an area in the window not accepting mouse clicks, so you can click anywhere.

A solution would be to make it configurable.

Regards,
Helge

0
Comment actions Permalink

Well, every other program behaves the other way, and it's really hard to use if one program behaves inconsistent to all others of the desktop...

0
Comment actions Permalink

You have my full ack -- but see, you're the lucky one having only one misbehaving application ;)

0
Comment actions Permalink

Well, plus the implementation in IntelliJ is just really weird: Say you're using Split Vertically to see two documents at once. Put the cursor in the left document. Then focus a firefox window or whatever. Then *drag* with the mouse in the right document. IntelliJ now has *selected* text in the right document where you dragged and indicates it in blue, but the blinking cursor is still in the left document and if you press the delete key it will delete a character in the left document rather than that what you just selected in the right one!

That's like, come on guys... :)

0
Comment actions Permalink

Did you report such bugs in the IDEA issue tracker?

0
Comment actions Permalink

Done, here: http://youtrack.jetbrains.net/issue/IDEA-72808

I really hope it's considered a bug and not expected behaviour though!

0

Please sign in to leave a comment.