From 581ec394f6885d36767f665cf3b338175dc5064b Mon Sep 17 00:00:00 2001 From: Joel de Vahl Date: Tue, 30 Dec 2008 15:52:26 +0000 Subject: fixed bug where the backspace doesn't work like it should under mac os x --- src/game/client/lineinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit 1.4.1