Skip to content

Commit 15a7a22

Browse files
committed
Schusch! Don't beep if I type correctly.
1 parent b0f926d commit 15a7a22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FetchXmlBuilder/DockControls/AiChatControl.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,13 @@ private void txtAiChatAsk_KeyDown(object sender, KeyEventArgs e)
360360
if (e.KeyCode == Keys.Enter && e.Control && !string.IsNullOrWhiteSpace(txtAiChat.Text))
361361
{
362362
e.Handled = true;
363+
e.SuppressKeyPress = true; // Prevents the beep sound
363364
SendChatToAI(btnAiChatAsk);
364365
}
365366
else if (e.KeyCode == Keys.Y && e.Control)
366367
{
367368
e.Handled = true;
369+
e.SuppressKeyPress = true;
368370
SendChatToAI(btnYes);
369371
}
370372
}

0 commit comments

Comments
 (0)