SFGUI icon indicating copy to clipboard operation
SFGUI copied to clipboard

Password cursor moves away from current typing point

Open thnom opened this issue 4 years ago • 2 comments

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

https://user-images.githubusercontent.com/56652672/143244497-1900e2f2-0ccb-4984-b159-042347587681.mov

thnom avatar Nov 24 '21 13:11 thnom

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

eXpl0it3r avatar Nov 24 '21 13:11 eXpl0it3r

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

thnom avatar Nov 24 '21 17:11 thnom