fix(web): prevent Enter key from sending message during IME composition (#715)

Co-authored-by: Zaki Manian <zaki@iqlusion.io>
This commit is contained in:
Fendi
2026-03-09 04:40:31 +08:00
committed by GitHub
parent 732b3ecfeb
commit da2569bb77

View File

@@ -1481,7 +1481,7 @@ chatInput.addEventListener('keydown', (e) => {
}
}
if (e.key === 'Enter' && !e.shiftKey) {
if (e.key === 'Enter' && !e.shiftKey && !e.isComposing) {
e.preventDefault();
hideSlashAutocomplete();
sendMessage();