Update ctrl+f.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@8263 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-05-10 17:57:02 +00:00
committed by derek
parent f26e517114
commit c95affe77b
2 changed files with 26 additions and 15 deletions

View File

@ -401,6 +401,9 @@ public class UserManager {
if (keyEvent.getKeyChar() == KeyEvent.VK_ENTER) {
if (ModelUtil.hasLength(contactField.getText())) {
ContactItem item = (ContactItem)contactMap.get(contactField.getText());
if (item == null) {
item = contactField.getSelectedContactItem();
}
if (item != null) {
parent.setGlassPane(glassPane);
parent.getGlassPane().setVisible(false);
@ -423,6 +426,9 @@ public class UserManager {
if (e.getClickCount() == 2) {
if (ModelUtil.hasLength(contactField.getText())) {
ContactItem item = (ContactItem)contactMap.get(contactField.getText());
if (item == null) {
item = contactField.getSelectedContactItem();
}
if (item != null) {
parent.setGlassPane(glassPane);
parent.getGlassPane().setVisible(false);