Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-21 22:57:08 +0000
committerStijn Buys <ingar@osirion.org>2008-07-21 22:57:08 +0000
commit2c7c599647773221fceacc1633b95e4b614b8af3 (patch)
tree4bc21e212fa19c7bce744644d3d78aa5cb3114e6 /src/client/chat.cc
parent980c5c41dc8e88ab3e7a5751348a92a0662a2ea4 (diff)
unbindall, proper delete key support
Diffstat (limited to 'src/client/chat.cc')
-rw-r--r--src/client/chat.cc5
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);