From: nyov Date: Sat, 3 Dec 2011 17:24:51 +0000 (+0100) Subject: console: CTRL+k for terminating line at cursor X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=26b58517e571b3c6730f400f25040f1eb8a92aa4;p=xonotic%2Fdarkplaces.git console: CTRL+k for terminating line at cursor --- diff --git a/keys.c b/keys.c index 18b7a844..2369407f 100644 --- a/keys.c +++ b/keys.c @@ -953,6 +953,12 @@ Key_Console (int key, int unicode) return; } + // nyov: delete char on cursor and terminate rest of line + if (key == 'k' && keydown[K_CTRL]) + { + key_line[key_linepos] = 0; + return; + } // move cursor to the next character if (key == K_RIGHTARROW || key == K_KP_RIGHTARROW)