🍎 fix: Update "Enter to send" behavior for Mac users (#4539)

* fix: Update useTextarea to handle Ctrl+Enter on Mac

* fix: Update language files for message sending behavior
This commit is contained in:
Danny Avila 2024-10-24 09:49:10 -04:00 committed by GitHub
parent c346596131
commit 840851cb0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

@ -157,7 +157,7 @@ export default function useTextarea({
checkHealth();
const isNonShiftEnter = e.key === 'Enter' && !e.shiftKey;
const isCtrlEnter = e.key === 'Enter' && e.ctrlKey;
const isCtrlEnter = e.key === 'Enter' && (e.ctrlKey || e.metaKey);
if (isNonShiftEnter && filesLoading) {
e.preventDefault();