dimanche 16 octobre 2016

Keycodes in Codename One?

In my test for a Codename One app, I have a value change listener for a text field. I want to check that the event has happened correctly, but TestUtils.setText does not fire the event. I also saw that I can simulate key presses and key releases, using the TestUtils class. They accept an integer, but I could not find information on what each key means. Which keycode should I pass if I want to press the key "A" for example?

Aucun commentaire:

Enregistrer un commentaire