Browse Source

Added check to messaging

Bart Reedijk 10 years ago
parent
commit
7145873ffe
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Proftaak Remote Healthcare/FietsClientV2/Forms/PatientForm.cs

+ 5 - 1
Proftaak Remote Healthcare/FietsClientV2/Forms/PatientForm.cs

@@ -120,7 +120,11 @@ namespace FietsClient
 
 
         private void messageBox_KeyPress(object sender, KeyPressEventArgs e)
         private void messageBox_KeyPress(object sender, KeyPressEventArgs e)
         {
         {
-            sendButton_Click(sender, e);
+            if (e.KeyChar == '\r')
+            {
+                sendButton_Click(sender, e);
+            }
+            
         }
         }
 
 
         private void printMessage(string[] data)
         private void printMessage(string[] data)