Added ctrl-g to cancel text

This commit is contained in:
Rob Pearce 2009-07-28 02:30:15 +00:00
parent 7bde100972
commit c8f80da5c2
1 changed files with 2 additions and 1 deletions

View File

@ -1738,7 +1738,8 @@ int main (int argc, char **argv) {
if (textpos != &text[strlen(text)]) textpos++; if (textpos != &text[strlen(text)]) textpos++;
updatetextcursor(); updatetextcursor();
//oooooooooo //oooooooooo
} else if (c2 == SDLK_ESCAPE) { } else if ((c2 == SDLK_ESCAPE) ||
((c2 == 'g') && (mod & KMOD_CTRL)) ) {
sprintf(statustext, "Aborted."); sprintf(statustext, "Aborted.");
changestate(S_NONE); changestate(S_NONE);
drawmap(TRUE); drawmap(TRUE);