mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
🍎 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:
parent
c346596131
commit
840851cb0f
5 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue