Is it possible to add a keyboard mode option to the current V6.0 release please? I have a requirement to change the keyboard to the upper case map on entry to a particular text box, which I have currently achieved by copying the uc_map/uc_ctrl_map from the lv_kb.c to my local .c file and resetting the keyboard map on entry to the text box. This works fine but I now have two copies of the keyboard maps floating around in the application which seems unnecessary as I don’t have a need to change the default maps.
I propose that the enum in lv_kb.h be redefined as follows:
Okay thank you very much, I have very recently gotten the simulator running on my Windows 10 laptop but still haven’t had chance to sort out the Git-Hub integration in Eclipse. I will take another look at it and attempt to do a pull request if I can get it working… I’ll let you know how I get on.
I am trying to remap the keys, but lv_kb_set_map() and lv_kb_set_ctrl_map() are not that useful because the maps are overwritten in lv_kb_def_event_cb() once the user changes keyboard shift states.
It would be better if lv_kb.c kept a pointer to the maps and then replaced the pointer with the user maps.
I’ve left out some items but I’m sure you get the idea. There are problems with the code - the maps are not stored in RO memory and the lv_kb_set_map functions set the maps without regard as to what map is currently in use (since there is no variable record of the shift state).
Now the next problem is that the keys to switch between maps is hard coded to ABC abc and 1#
@xennex
It sounds reasonable.
As we already have lv_kb_set_map it would be an API breaking update therefore it can go only to the next major release. Anyway can you open a Pull request on GitHub? We will merge it when dev-7.0 is created.