mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 11:20:44 +07:00
Autoinserted value in Search Everywhere should be selected (IDEA-146791)
Search Everywhere is not automatically displaying selected text (IDEA-157100)
This commit is contained in:
@@ -373,13 +373,14 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
|
||||
return;
|
||||
}
|
||||
String text = "";
|
||||
//if (myEditor != null) {
|
||||
// text = myEditor.getSelectionModel().getSelectedText();
|
||||
// text = text == null ? "" : text.trim();
|
||||
//}
|
||||
if (myEditor != null) {
|
||||
text = myEditor.getSelectionModel().getSelectedText();
|
||||
text = text == null ? "" : text.trim();
|
||||
}
|
||||
|
||||
search.setText(text);
|
||||
search.getTextEditor().setForeground(UIUtil.getLabelForeground());
|
||||
search.selectText();
|
||||
//titleIndex = new TitleIndexes();
|
||||
editor.setColumns(SEARCH_FIELD_COLUMNS);
|
||||
myFocusComponent = e.getOppositeComponent();
|
||||
|
||||
Reference in New Issue
Block a user