fix(#199): Shift+Enter inserts newline instead of sending in newline mode#202
fix(#199): Shift+Enter inserts newline instead of sending in newline mode#202proyectoauraorg wants to merge 3 commits into
Conversation
…cronización - Traducir todos los títulos, secciones y descripciones al español - Agregar sección de Estado de Sincronización con tabla de branches - Actualizar commit de referencia a 7de61e6 - Actualizar fecha y hora de última sincronización
… in newline mode In 'newline' enter behavior mode, Shift+Enter was incorrectly treated as a send shortcut alongside Ctrl+Enter and Cmd+Enter. This caused unexpected empty message sends when users pressed Shift+Enter expecting a newline. - Remove shiftKey from the send condition in newline mode - Only Ctrl/Cmd+Enter triggers send; Shift+Enter now inserts a newline - Update test to reflect corrected behavior
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…) en CONTRIBUTIONS.md
|
Thank you for your PR, it looks like its a duplicate of #199 Is your fix any different? The code looks the same to me |
|
Closing in favour of #199 |
Resumen
Corrige el bug del Issue #199 donde Shift+Enter enviaba un mensaje vacío en lugar de insertar una nueva línea cuando el comportamiento de Enter está configurado como
newline.El problema
En el modo
newline, la lógica original trataba Shift+Enter como combinación de envío junto con Ctrl+Enter y Cmd+Enter:Esto causaba que los usuarios que presionaban Shift+Enter (buscando una nueva línea) vieran enviado un mensaje vacío o incompleto.
La solución
Se remueve
shiftKeyde la condición de envío. Ahora solo Ctrl/Cmd+Enter envían mensajes, mientras que Shift+Enter inserta una nueva línea como se espera:Cambios
ChatTextArea.tsxevent.shiftKeyde la condición de envío en modo newlineChatTextArea.spec.tsxComportamiento esperado
submit(default)newlineFixes #199