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

fix: #2751

parent fddf693d
...@@ -828,13 +828,19 @@ ...@@ -828,13 +828,19 @@
e.preventDefault(); e.preventDefault();
} }
if (e.key === 'Enter' && !e.shiftKey && prompt !== '') { const commandOptionButton = [
submitPrompt(prompt, user); ...document.getElementsByClassName('selected-command-option-button')
return; ]?.at(-1);
}
if (e.key === 'Enter' && e.shiftKey && prompt !== '') { if (!commandOptionButton) {
return; if (e.key === 'Enter' && !e.shiftKey && prompt !== '' && selected) {
submitPrompt(prompt, user);
return;
}
if (e.key === 'Enter' && e.shiftKey && prompt !== '') {
return;
}
} }
} }
......
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