Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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);