Hi!
I have a problem with character casing on a TextItem. If I add a key press handler, character casing stops working, but If I remove the key press handler everything works fine. I was wondering if I'm missing something really obvious. I hope someone can help me, thanks.
This is my code
I have a problem with character casing on a TextItem. If I add a key press handler, character casing stops working, but If I remove the key press handler everything works fine. I was wondering if I'm missing something really obvious. I hope someone can help me, thanks.
This is my code
Code:
txtNumero = new TextItem("numero", "Averiguacion"); txtNumero.setCharacterCasing(CharacterCasing.UPPER); txtNumero.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if(event.getKeyName().equals("Enter")) buscarDocumentosAveriguacion(); } });
Comment