Explorar el Código

Added check to messaging

Bart Reedijk hace 10 años
padre
commit
7145873ffe
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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)
         {
-            sendButton_Click(sender, e);
+            if (e.KeyChar == '\r')
+            {
+                sendButton_Click(sender, e);
+            }
+            
         }
 
         private void printMessage(string[] data)