Funny completion list click behavior

已回答

 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?

0
正式评论

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. 

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

0

Now at ChooseItemAction

0

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

0

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

请先登录再写评论。