(svn r2385) - Feature: shortcut CTRL + U that clears the commandline of the current input-box. As requested by Tron.

This commit is contained in:
Darkvater
2005-05-30 16:03:21 +00:00
parent 0cd53574ec
commit d0a0d6fcb5
3 changed files with 21 additions and 1 deletions

View File

@@ -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();