Keep textarea cursor visible when focus is lost

Is there a way to keep the cursor visible in a text area, even when focus is lost?

I’ve got it working with a callback routine to reset focus, but its not very elegant I dont think.

Environment

  • MCU/MPU/Board: ESP32-P4-C6
  • LVGL version: V9.6.0

Hi @Jimbo181,

Yes, there are cleaner options than a callback that resets focus. The cursor is styled per state by default is LV_STATE_FOCUSED.

Here you will find an elegant solution.