eirikbakke commented on code in PR #5334:
URL: https://github.com/apache/netbeans/pull/5334#discussion_r1114699788


##########
ide/editor.completion/src/org/netbeans/modules/editor/completion/CompletionLayout.java:
##########
@@ -367,48 +367,82 @@ private void show(List data, String title, int 
anchorOffset, Point location,
                 completionScrollPane = new CompletionScrollPane(
                     editorComponent, listSelectionListener,
                     new MouseAdapter() {
+                        CompletionItem selectedItemOnPress;
+
+                        @Override
+                        public void mousePressed(MouseEvent evt) {
+                          if (!SwingUtilities.isLeftMouseButton(evt)) {

Review Comment:
   It's just for consistency with mouseReleased and mouseClicked, where it 
avoids another level of nesting (we're already 7 levels deep...)
   
   But I see I used 2 spaces instead of four here--I should fix that!



-- 
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