2

I had this code in LWUIT, but now that I've migrated to CodeNameOne the Canvas class not have the constants KEY_NUM1, KEY_NUM2, etc. And I can't add the Key Listener.

form.addKeyListener (Canvas.KEY_NUM1, bListener);

Where can I find these constants in CodeNameOne?

Jazter
  • 31
  • 1

1 Answers1

4

Just use '0' instead of the num1 constant.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65