lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library
https://lvgl.io
492 stars 366 forks source link

multiline editor can not move the cursor to end of line. #60

Closed incity closed 4 years ago

incity commented 4 years ago

image

As shown in the figure, i can't move the cursor to the end of line use mouse click.

incity commented 4 years ago
  1. type anyone character, e.g. "a", and the cursor now is after "a", like this -> "a|"
  2. click the editor, the cursor will move back, becomes --> "|a"
kisvegabor commented 4 years ago

@incity I've fixed it in master.

incity commented 4 years ago

@kisvegabor not soloved, still have other same problems

kisvegabor commented 4 years ago

Oh, really. There was a special case when BIDI was enabled and you clicked after the last character. Should work now.

incity commented 4 years ago

Hi still has other problems: image click here before popup the keyboard, and it will auto input 'o'

incity commented 4 years ago

image it can only popup the keyboard one time

incity commented 4 years ago

@kisvegabor did you see?

kisvegabor commented 4 years ago

@incity The first issue (added "o" character) should be fixed here: https://github.com/lvgl/lv_examples/commit/5ac85f8faa472f7242a3591706d322219928e307

I can't reproduce the second one (can't open the keyboard again). Can you send a video or gif?

incity commented 4 years ago

fb5baecb8b19b887b0b8d59cf5ad1fb4.zip @kisvegabor

kisvegabor commented 4 years ago

Fixed it, thank you!