1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-06 20:09:03 +00:00

fixed the TAB key to actually clear in text dialog

This commit is contained in:
Zeno Rogue
2025-09-09 09:38:07 +02:00
parent aad7a4d866
commit c5ce82b2c7

View File

@@ -1953,6 +1953,9 @@ EX namespace dialog {
string u2;
if(DKEY == SDLK_LEFT) editpos -= utfsize_before(es, editpos);
else if(DKEY == SDLK_RIGHT) editpos += utfsize(es[editpos]);
else if(uni == '\t') {
es = ""; editpos = 0;
}
else if(uni == 8) {
if(editpos == 0) return true;
int len = utfsize_before(es, editpos);