hoffstadt / hoffstadt/DearPyGui

Wrong cursor movement in multiline text input

Open
#1,775 1 comment 1 reaction 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## 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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.