mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix deleting not scrolling (#181)
This commit is contained in:
parent
249f77b3bc
commit
9b06e85d90
@ -142,6 +142,12 @@ std::string kbdGetString(std::string label, int maxSize, std::string oldStr) {
|
|||||||
stringPosition--;
|
stringPosition--;
|
||||||
}
|
}
|
||||||
output.erase(output.begin() + stringPosition);
|
output.erase(output.begin() + stringPosition);
|
||||||
|
|
||||||
|
if(cursorPosition - 1 < 0) {
|
||||||
|
scrollPosition--;
|
||||||
|
while((output[scrollPosition] & 0xC0) == 0x80) // UTF-8
|
||||||
|
scrollPosition--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if(pressed & KEY_START) {
|
} else if(pressed & KEY_START) {
|
||||||
done = true;
|
done = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user