mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 04:01:56 +00:00
parent
1e7d991a25
commit
345fa975f1
5 changed files with 24 additions and 14 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
Input,
|
||||
isArrowDown,
|
||||
isArrowUp,
|
||||
isCtrlC,
|
||||
isEnter,
|
||||
isEscape,
|
||||
Spacer,
|
||||
|
|
@ -234,8 +235,8 @@ export class ModelSelectorComponent extends Container {
|
|||
this.handleSelect(selectedModel.model);
|
||||
}
|
||||
}
|
||||
// Escape
|
||||
else if (isEscape(keyData)) {
|
||||
// Escape or Ctrl+C
|
||||
else if (isEscape(keyData) || isCtrlC(keyData)) {
|
||||
this.onCancelCallback();
|
||||
}
|
||||
// Pass everything else to search input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue