Commit 16e72b2f authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: #2751

parent fddf693d
......@@ -828,7 +828,12 @@
e.preventDefault();
}
if (e.key === 'Enter' && !e.shiftKey && prompt !== '') {
const commandOptionButton = [
...document.getElementsByClassName('selected-command-option-button')
]?.at(-1);
if (!commandOptionButton) {
if (e.key === 'Enter' && !e.shiftKey && prompt !== '' && selected) {
submitPrompt(prompt, user);
return;
}
......@@ -837,6 +842,7 @@
return;
}
}
}
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment