Text area entry using a keypad

Important: posts that do not use this template will be ignored or closed.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the relevant part of the documentation. We will not respond in detail to posts where you haven’t read the relevant documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.


What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

I would like to be able to enter text into the text area using a keypad. Atm my keys are LV_KEY_PREV LV_KEY_NEXT (Up and down physical keys) and LV_KEY_UP / LV_KEY_DOWN (left and right physical keys). I don’t mind if it uses the onscreen keyboard but I have found that with my keys, it does not function correctly.

What have you tried so far?

Assigning the keyboard to the text area but with my keys I can only go up and down the keyboard. LV_KEY_NEXT / LV_KEY_PREV move to the next widget on the page.

Any pointers would be gratefully received.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.


What is the intended way to “press” the selected key? It seems to me and “Enter” or “Ok” key is conceptually missing.