In a complex application with many grids with text fields inside grid headers as filter combinded with shortcut listener shows following strange behaviour - sometimes the ShortcutListener works, sometimes not. All the different grids are similar due the automation code.
Grid A with filters and ShortcutListener works
Grid B with filters and ShortcutListener doesn’t work
…
estimated for the half of the grids the ShortcutListener isn’t working.
There also a grid with an addional row for the admin - with the addional row - the combination filter & ShortcutListener works
without the addional row - the ShortcutListener doesn’t work
I have no idea!
with best regards
Peter
part of the code
…
if (uiupdate != null) {
ShortcutListener shortcut = new ShortcutListener(null, KeyCode.ENTER,null) {
@Override
public void handleAction(Object sender, Object target) {
try {
uiupdate.update();
} catch (Exception e) {
SharedComponents.handleException(uiupdate.getName() + ".update()", e);
}
}
};
field.addShortcutListener(shortcut); // Textfield
}
…