mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-25 10:24:26 +00:00
fixed the TAB key to actually clear in text dialog
This commit is contained in:
1 parent
aad7a4d866
commit
c5ce82b2c7
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user