소스 검색

Added check to messaging

Bart Reedijk 10 년 전
부모
커밋
7145873ffe
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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)