diff options
| author | Joel de Vahl <joel@stalverk80.se> | 2008-12-30 15:52:26 +0000 |
|---|---|---|
| committer | Joel de Vahl <joel@stalverk80.se> | 2008-12-30 15:52:26 +0000 |
| commit | 581ec394f6885d36767f665cf3b338175dc5064b (patch) | |
| tree | b49d17d2fbe87242b736d1abc11f1bd7bf9e7a97 | |
| parent | fa9002f9b4b251300470f859688b7e852e81fa81 (diff) | |
| download | zcatch-581ec394f6885d36767f665cf3b338175dc5064b.tar.gz zcatch-581ec394f6885d36767f665cf3b338175dc5064b.zip | |
fixed bug where the backspace doesn't work like it should under mac os x
| -rw-r--r-- | src/game/client/lineinput.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/client/lineinput.cpp b/src/game/client/lineinput.cpp index 7ec22d4e..40c47d41 100644 --- a/src/game/client/lineinput.cpp +++ b/src/game/client/lineinput.cpp @@ -29,7 +29,8 @@ void LINEINPUT::process_input(INPUT_EVENT e) char c = e.ch; int k = e.key; - if (!(c >= 0 && c < 32)) + // 127 is produced on Mac OS X and corresponds to the delete key + if (!(c >= 0 && c < 32) && c != 127) { if (len < sizeof(str) - 1 && cursor_pos < sizeof(str) - 1) { |