Keyboard Insert Mode


Hi, I’m curious if there is a straightforward way for the lv_keyboard object to operate in insert mode? By insert mode, I mean as if you pressed the “insert” key on a normal PC keyboard, so that the character to the right of the cursor is replaced by the incoming character, rather than pushed to the right.

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

Custom proprietary STM32H7 board

What LVGL version are you using?


What do you want to achieve?

Insert mode on the keyboard

What have you tried so far?


Code to reproduce

This is how we currently initialize the keyboard.

   s_obj.keypad_ = lv_keyboard_create(parent);
   lv_keyboard_set_mode(s_obj.keypad_, LV_KEYBOARD_MODE_NUMBER);
   lv_obj_align(s_obj.keypad_, LV_ALIGN_TOP_LEFT, 0, 0);
   lv_obj_set_size(s_obj.keypad_, 300, 200);
   lv_obj_set_pos(s_obj.keypad_, 0, 72);
   lv_obj_add_event_cb(s_obj.keypad_, cbs->KeypadEnter_, LV_EVENT_READY, NULL);
   lv_obj_add_flag(s_obj.keypad_, LV_OBJ_FLAG_HIDDEN);