TankOs/SFGUI

Password cursor moves away from current typing point

Opened this issue · 2 comments

thnom commented

As observed in the below (using test from examples), the cursor for password fields moves further away from the correct point as you type.

Screen.Recording.2021-11-24.at.13.07.50.mov

Looks like the MoveCursor function doesn't consider when HideText is set and always calculates the cursor position for the actual input text: https://github.com/TankOs/SFGUI/blob/master/src/SFGUI/Entry.cpp#L146

thnom commented

Doesn't appear to actually be tied to HideText or not - testing on visible fields depicts the same bug if you continuously type "*"