eirikbakke opened a new pull request, #5334:
URL: https://github.com/apache/netbeans/pull/5334

   This PR adds a method CompletionItem.shouldSingleClickInvokeDefaultAction() 
that can optionally be implemented by editor completion item implementations. 
If this method is overridden to return true, a completion item will be inserted 
after a single click, as opposed to the existing default behavior which is to 
require a double-click.
   
   This allows platform applications to use the Editor Completion API to 
implement combobox-like behavior. E.g. in [Ultorg](https://www.ultorg.com/) 
below:
   
   <img width="767" alt="ComboBox" 
src="https://user-images.githubusercontent.com/886243/213814455-bfc55777-69d3-4598-a371-734f6b57be71.png";>
   
   (The existing double-click behavior still makes sense as a default, because 
the user may be clicking the item once to show documentation.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to