DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Wrong cursor movement in multiline text input

Open chang-zhao opened this issue 2 years ago • 0 comments

Version of Dear PyGui

Version: 1.6.2 Operating System: Linux 5.15.38-1-Manjaro-21.2.6

My Issue/Question

In widget "Multi-line Text Input", wrong text cursor movements when "arrow up" or "arrow down" keys are pressed.

To Reproduce

  1. Start demo.py

  2. Open the Multi-line Text Input, click in it, clear the text and input 2 strings:

    dear py dear py

  3. From the last position of the second line, press "arrow up".

  4. See the error: cursor moves to the start of the line.

Expected behavior

Cursor should move up, to the end of the 1st line.

Additional info

Similar bugs happen if you put the cursor at the start of the string and press Ctrl-Right (it moves to the start of the second word), then "arrow up" (or "arrow down" in the first line). The cursor moves to the start of the same or another line, not preserving its column position. (In some other case the cursor didn't move at all when "arrow up" was pressed and it was at the end of the second line).

chang-zhao avatar May 18 '22 23:05 chang-zhao