diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-21 22:57:08 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-21 22:57:08 +0000 |
commit | 2c7c599647773221fceacc1633b95e4b614b8af3 (patch) | |
tree | 4bc21e212fa19c7bce744644d3d78aa5cb3114e6 /src/client/chat.cc | |
parent | 980c5c41dc8e88ab3e7a5751348a92a0662a2ea4 (diff) |
unbindall, proper delete key support
Diffstat (limited to 'src/client/chat.cc')
-rw-r--r-- | src/client/chat.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/chat.cc b/src/client/chat.cc index 6c3140d..522a675 100644 --- a/src/client/chat.cc +++ b/src/client/chat.cc @@ -173,6 +173,11 @@ void keypressed(unsigned int key) if (input_pos < (*history_pos).size()) input_pos++; break; + case SDLK_DELETE: + if ((*history_pos).size() && input_pos < (*history_pos).size()) { + (*history_pos).erase(input_pos, 1); + } + break; case SDLK_BACKSPACE: if ((*history_pos).size() && input_pos) { (*history_pos).erase(input_pos-1, 1); |