From 26b58517e571b3c6730f400f25040f1eb8a92aa4 Mon Sep 17 00:00:00 2001 From: nyov Date: Sat, 3 Dec 2011 18:24:51 +0100 Subject: [PATCH] console: CTRL+k for terminating line at cursor --- keys.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2