fix: enter key input during prompt edit not working
This commit is contained in:
parent
8fe0288937
commit
1d2f4dc5ba
1 changed files with 3 additions and 1 deletions
|
|
@ -196,6 +196,8 @@ export function createEditorConfig(options: {
|
|||
addKeyboardShortcuts() {
|
||||
return {
|
||||
Enter: () => {
|
||||
console.log("debug1 here", inDropdownRef.current);
|
||||
|
||||
if (inDropdownRef.current) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -350,7 +352,7 @@ export function createEditorConfig(options: {
|
|||
if (!editor) {
|
||||
return;
|
||||
}
|
||||
if (isStreaming || (codeToEdit.length === 0 && isInEdit)) {
|
||||
if (isStreamingRef.current || (codeToEdit.length === 0 && isInEdit)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue