Prevent completion panel getting focus

This commit is contained in:
Jakub Valtar
2015-09-21 11:55:23 -04:00
parent aa138107d9
commit bf438dd5e4

View File

@@ -129,7 +129,7 @@ public class CompletionPanel {
scrollPane.setViewportView(completionList = createSuggestionList(position, items));
popupMenu.add(scrollPane, BorderLayout.CENTER);
popupMenu.setPopupSize(calcWidth(), calcHeight(items.getSize())); //TODO: Eradicate this evil
textarea.requestFocusInWindow();
popupMenu.setFocusable(false);
ASTGenerator astGenerator = editor.getErrorChecker().getASTGenerator();
synchronized (astGenerator) {
astGenerator.updateJavaDoc(completionList.getSelectedValue());