fix: enter key input during prompt edit not working

This commit is contained in:
uinstinct 2025-10-22 19:44:06 +05:30
parent 8fe0288937
commit 1d2f4dc5ba

View file

@ -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;
}