mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
Handle repeat key events for send-immediately
This commit is contained in:
@@ -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!(
|
||||
|
||||
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user