Enter shortcut works on second press

Hello all,

I have a form with some textfields and a button. I have a setClickShortcut(KeyCode.ENTER) on the button but it is not working properly… here’s the behaviour:

  1. We enter on the page and the first textfield is focused
  2. I press Enter, the supposed action happens
  3. I write something on the Textfield
  4. I press Enter, the supposed action do not happen but the textfield border turns to yellow
  5. I press Enter for a second time and the actions happens

I needed that the Enter worked on the 1st press and not on the 2nd…

Any ideas?

Thanx

Hi!

Could you grab a latest 6.4 nightly build and test whether your code works with that. There was an issue fixed just yesterday that may cause this behavior.

See:
http://dev.vaadin.com/ticket/5539#comment:7

cheers,
matti

Hi!

I have just compiled the nighlty build and the bug is solved! Thank you very much

Bruno