Browse Source

键盘监听修改

master
XiaXiang 7 years ago
parent
commit
37ea69021b
  1. 7
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

7
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -468,7 +468,6 @@ public class AlphaFineDialog extends UIDialog {
private void buildRecommendList(final String searchText) {
SearchResult recommendModelList = RecommendSearchManager.getRecommendSearchManager().getLessSearchResult(searchText);
for (AlphaCellModel object : recommendModelList) {
AlphaFineHelper.checkCancel();
searchListModel.addElement(object);
}
}
@ -476,7 +475,6 @@ public class AlphaFineDialog extends UIDialog {
private void buildRecentList(final String searchText) {
SearchResult recentModelList = RecentSearchManager.getRecentSearchManger().getLessSearchResult(searchText);
for (AlphaCellModel object : recentModelList) {
AlphaFineHelper.checkCancel();
searchListModel.addElement(object);
}
@ -642,8 +640,7 @@ public class AlphaFineDialog extends UIDialog {
UILabel label = new UILabel(new ImageIcon(getClass().getResource("/com/fr/design/mainframe/alphafine/images/opening.gif")));
label.setBorder(BorderFactory.createEmptyBorder(120, 0, 0, 0));
rightSearchResultPane.add(label, BorderLayout.CENTER);
validate();
repaint();
refreshContainer();
}
/**
@ -683,6 +680,8 @@ public class AlphaFineDialog extends UIDialog {
doSearch(searchTextField.getText());
}
}, 50);
} else if (keyCode == KeyEvent.VK_UP) {
return;
} else {
doSearch(searchTextField.getText());

Loading…
Cancel
Save