diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-30 16:03:21 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-30 16:03:21 +0000 |
commit | d0a0d6fcb5193c2b0a3b744147332ec2b24f213e (patch) | |
tree | b3abbef3ec0c78027bf6b01ef5ca1b7b224c77fe /console.c | |
parent | 0cd53574ec659e283a0029f6cd037ffd66999e60 (diff) | |
download | openttd-d0a0d6fcb5193c2b0a3b744147332ec2b24f213e.tar.xz |
(svn r2385) - Feature: shortcut CTRL + U that clears the commandline of the current input-box. As requested by Tron.
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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(); |