Keyboard apply event

Hi,
using the keyboard, I saw a “strange” behavior on the ok … (apply) pressure only when I was in “special characters” mode.

I changed the code part below by putting it equal to:
lv_kb_ctrl_uc_map
lv_kb_ctrl_lc_map

from

static const lv_btnm_ctrl_t kb_ctrl_spec_map[] = {
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, LV_KB_CTRL_BTN_FLAGS | 2,
    LV_KB_CTRL_BTN_FLAGS | 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    LV_KB_CTRL_BTN_FLAGS | 2, LV_KB_CTRL_BTN_FLAGS | 2, 6, 2, 2};

to

static const lv_btnm_ctrl_t kb_ctrl_spec_map[] = {
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, LV_KB_CTRL_BTN_FLAGS | 2,
    LV_KB_CTRL_BTN_FLAGS | 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    LV_KB_CTRL_BTN_FLAGS | 2, 2, 6, 2, LGL_KB_CTRL_BTN_FLAGS | 2};

the keyboard layout, in the last line, would look the same in all three cases.
With this change everything works correctly.

Did I do the right thing or did I do anything wrong in handling events?

Thanks

Walter

Hi,

it was really a bug. I’ve fixed it in the master branch.

Hi,
thanks :slight_smile:

By Walter