Skip to content
Snippets Groups Projects
Commit 89d661dc authored by ribeaudc's avatar ribeaudc
Browse files

fix: - Using enter key in the SearchWidget could put the user in a deadlock loop.

SVN: 9067
parent ba47d65c
No related branches found
No related tags found
No related merge requests found
......@@ -268,19 +268,23 @@ final class SearchWidget extends LayoutContainer
if (entities.size() == 0)
{
final IMessageProvider messageProvider = viewContext.getMessageProvider();
final Listener<WindowEvent> listener = null;
// TODO 2008-11-21, Christian Ribeaud: Replace the <null> listener with the
// following once gxt solved the problem with event propagation in MessageBox.
// final Listener<WindowEvent> listener = new Listener<WindowEvent>()
// {
//
// //
// // Listener
// //
//
// public final void handleEvent(final WindowEvent be)
// {
// selectAllAndFocus();
// }
// };
MessageBox.alert(messageProvider.getMessage("messagebox_warning"), messageProvider
.getMessage("no_match", queryText), new Listener<WindowEvent>()
{
//
// Listener
//
public final void handleEvent(final WindowEvent be)
{
selectAllAndFocus();
}
});
.getMessage("no_match", queryText), listener);
return;
}
textField.reset();
......
......@@ -23,6 +23,7 @@ public abstract class EnterKeyListener extends KeyListener
{
onEnterKey();
event.stopEvent();
event.doit = false;
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment