How to modify the value of a single key in a keyboard?

Description

I am using the keyboard in numeric mode for numeric, as well as time values.

For entering time, I would like to replace the ‘.’ key with a ‘:’ (colon).
So that the keyboard directly sends a ‘:’ instead of a ‘.’ to its associated text area.

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

ESP32

What LVGL version are you using?

9.2.2

What do you want to achieve?

As mentioned in Description

What have you tried so far?

Workaround in the ‘value changed’ callback of the keyboard to trap the ‘.’ key and replace it with a ‘:’ .

Is there a way to do this (other than create a keyboard from scratch) ?

Thank you!

–Royce

You need to use the lv_keyboard_set_map() function.

Define your own character layout, set the mode and that’s it.
Look for examples, there are many on the internet.