diff options
| author | TheEdgeNK <trey6979@gmail.com> | 2018-08-26 14:15:03 -0400 |
|---|---|---|
| committer | TheEdgeNK <trey6979@gmail.com> | 2018-08-26 14:15:03 -0400 |
| commit | ee343916c292c741041167a1a77f4b59a95002c5 (patch) | |
| tree | 1ad04a230aadc311041d78cc3a54e5f1c93a03d2 /Project Ports/Programs/ChatApp.cs | |
| parent | 4800d7686b470b3a39314e76ea02daee790078b7 (diff) | |
| download | Project-Silicon-ee343916c292c741041167a1a77f4b59a95002c5.tar.gz Project-Silicon-ee343916c292c741041167a1a77f4b59a95002c5.tar.bz2 Project-Silicon-ee343916c292c741041167a1a77f4b59a95002c5.zip | |
Ability to change chatter username, also, terminal!
Diffstat (limited to 'Project Ports/Programs/ChatApp.cs')
| -rw-r--r-- | Project Ports/Programs/ChatApp.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Project Ports/Programs/ChatApp.cs b/Project Ports/Programs/ChatApp.cs index 593fa17..0e89077 100644 --- a/Project Ports/Programs/ChatApp.cs +++ b/Project Ports/Programs/ChatApp.cs @@ -21,7 +21,16 @@ namespace Project_Ports private void btnSendMSG_Click(object sender, EventArgs e) { - PortEngine.ChatAPI.SendMessage(txtMsgContents, txtSentMessages); + ChatAPI.SendMessage(txtMsgContents, txtSentMessages); + } + + private void txtMsgContents_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + ChatAPI.SendMessage(txtMsgContents, txtSentMessages); + e.SuppressKeyPress = true; + } } } } |
