Browse Source

增加键盘事件

master
xiaoxia 8 years ago
parent
commit
b3d5868b42
  1. 9
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

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

@ -269,6 +269,15 @@ public class AlphaFineDialog extends UIDialog {
}
}
});
searchResultList.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
doNavigate(searchResultList.getSelectedIndex());
}
}
});
}
private void showResult(int index, Object selectedValue) {

Loading…
Cancel
Save