Handle repeat key events for send-immediately

This commit is contained in:
Ahmed Ibrahim
2026-01-11 18:35:14 -08:00
parent 9116629f2c
commit f016c9d79e
2 changed files with 2 additions and 2 deletions

View File

@@ -1143,7 +1143,7 @@ impl ChatComposer {
}
fn is_send_immediately_key(&self, key_event: &KeyEvent) -> bool {
if key_event.kind != KeyEventKind::Press {
if !matches!(key_event.kind, KeyEventKind::Press | KeyEventKind::Repeat) {
return false;
}
let is_enter = matches!(

View File

@@ -1077,7 +1077,7 @@ impl ChatComposer {
}
fn is_send_immediately_key(&self, key_event: &KeyEvent) -> bool {
if key_event.kind != KeyEventKind::Press {
if !matches!(key_event.kind, KeyEventKind::Press | KeyEventKind::Repeat) {
return false;
}
let is_enter = matches!(