From 53b1de7d70c92d78d3ef5d5d6021bea0bfe39073 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 30 May 2005 16:03:21 +0000 Subject: (svn r2385) - Feature: shortcut CTRL + U that clears the commandline of the current input-box. As requested by Tron. --- console.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'console.c') diff --git a/console.c b/console.c index cccba3beb..ebe47a87c 100644 --- a/console.c +++ b/console.c @@ -151,9 +151,13 @@ static void IConsoleWndProc(Window* w, WindowEvent* e) SetWindowDirty(w); } break; - case (WKC_CTRL | 'L'): + case (WKC_CTRL | 'L'): IConsoleCmdExec("clear"); break; + case (WKC_CTRL | 'U'): + DeleteTextBufferAll(&_iconsole_cmdline); + SetWindowDirty(w); + break; case WKC_BACKSPACE: case WKC_DELETE: if (DeleteTextBufferChar(&_iconsole_cmdline, e->keypress.keycode)) { IConsoleResetHistoryPos(); -- cgit v1.2.3-54-g00ecf