Funny completion list click behavior

Answered

 Hi,

I'd like to make it possible so I can select items on the completion list with one mouse click instead of 2. In the key map settings, it is possible to set  "Choose Lookup item" to "ButtonClick1".  However, for some reason this doesn't work.  It seems that whenever the completion list is clicked, the window title bar flashes a little bit which is kind of strange.

 Is there a workaround to this?

5 comments
Comment actions Permalink
Official comment

This is not currently supported and surprisingly not very trivial to implement. If you manage to do that, patches are very welcome. There's already a request: https://youtrack.jetbrains.com/issue/IDEABKL-6455. 

Comment actions Permalink

I might be able to change this behavior programmatically with LookupElementPresentation.

0
Comment actions Permalink

Now at ChooseItemAction

0
Comment actions Permalink

Ok I should be able to use MouseListener to listen for the mouse event on the lookup element. Should work.

0
Comment actions Permalink

For anyone who is interested in single click behavior in the completion window, you can check out my plugin Brew Java at https://plugins.jetbrains.com/plugin/10904-brew-java . It also has right click to complete and add dot operator.

0

Please sign in to leave a comment.