Thanks for the reply, it got me going in the right direction.
Instead of my original code, I simply overrode DataField's
focusInHandler (actually implemented in ComboBase) and changed the
line:
fm.defaultButtonEnabled = false;
to
fm.defaultButtonEnabled = true;
Now pressing ENTER
I got it working. The final solution is:
1. override focusInHandler leave defaultButtonEnabled = true
2. when the drop down (date picker in this case) is shown, set
defaultButtonEnabled = false when it is shown, true otherwise
Just my opinion, but I think this should have been the
2 matches
Mail list logo