queue only when task is working (#9558)
This commit is contained in:
parent
de4980d2ac
commit
fbd8afad81
2 changed files with 2 additions and 2 deletions
|
|
@ -1816,7 +1816,7 @@ impl ChatComposer {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
kind: KeyEventKind::Press,
|
||||
..
|
||||
} => self.handle_submission(true),
|
||||
} if self.is_task_running => self.handle_submission(true),
|
||||
KeyEvent {
|
||||
code: KeyCode::Enter,
|
||||
modifiers: KeyModifiers::NONE,
|
||||
|
|
|
|||
|
|
@ -1746,7 +1746,7 @@ impl ChatComposer {
|
|||
modifiers: KeyModifiers::NONE,
|
||||
kind: KeyEventKind::Press,
|
||||
..
|
||||
} => self.handle_submission(true),
|
||||
} if self.is_task_running => self.handle_submission(true),
|
||||
KeyEvent {
|
||||
code: KeyCode::Enter,
|
||||
modifiers: KeyModifiers::NONE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue