diff --git a/src/sbbs3/chat/MainFormUnit.cpp b/src/sbbs3/chat/MainFormUnit.cpp
index 3ede11ecdce446611ba04156781f92f31e4ef627..18a737903b504ce2cf3da96ea1efe2f3013e262a 100644
--- a/src/sbbs3/chat/MainFormUnit.cpp
+++ b/src/sbbs3/chat/MainFormUnit.cpp
@@ -46,6 +46,8 @@
 #include <vcl\Registry.hpp>	/* TRegistry */
 #pragma hdrstop
 
+#include "gen_defs.h"       /* BS and DEL */
+
 #define PCHAT_LEN 1000		/* Size of Private chat file */
 #define REG_KEY "\\Software\\Swindell\\Synchronet Chat\\"
 
@@ -223,7 +225,7 @@ void __fastcall TMainForm::InputTimerTick(TObject *Sender)
         /* Got char, display it */
         if(ch=='\r')
             Remote->Lines->Add("");
-        else if(ch=='\b')    // backspace
+        else if(ch==BS || ch==DEL)    // backspace
             Remote->Lines->Text
                 =Remote->Lines->Text.SetLength(Remote->Lines->Text.Length()-1);
         else {