From c8f80da5c29f6d2510ce4b668d918fa21543e2b2 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Tue, 28 Jul 2009 02:30:15 +0000 Subject: [PATCH] Added ctrl-g to cancel text --- netmapr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netmapr.c b/netmapr.c index 5f8b04e..d7ca737 100644 --- a/netmapr.c +++ b/netmapr.c @@ -1738,7 +1738,8 @@ int main (int argc, char **argv) { if (textpos != &text[strlen(text)]) textpos++; updatetextcursor(); //oooooooooo - } else if (c2 == SDLK_ESCAPE) { + } else if ((c2 == SDLK_ESCAPE) || + ((c2 == 'g') && (mod & KMOD_CTRL)) ) { sprintf(statustext, "Aborted."); changestate(S_NONE); drawmap(TRUE);