Skip to content

Commit 22c32d9

Browse files
docs: registrar PR Zoo-Code-Org#202 (fix Zoo-Code-Org#199 Shift+Enter) en CONTRIBUTIONS.md
1 parent ae27eea commit 22c32d9

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

CONTRIBUTIONS.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
| 1 | `fix/i18n-roo-to-zoo-brand-consistency` | ✅ Listo | Bug fix (i18n) | Reemplazar referencias "Roo" obsoletas con "Zoo" en archivos de idioma |
1515
| 2 | `feat/user-agent-migration` | ✅ Listo | Mejora (branding) | Migrar User-Agent headers de Roo-Cline a Zoo-Code |
1616
| 3 | `fix/global-font-size` | ⏸️ Diferido | Mejora (UX) | Normalización global de tamaño de fuente — demasiado invasivo, sin issue |
17+
| 4 | `fix/199-shift-enter-newline` | ✅ PR creado | Bug fix (UX) | Shift+Enter inserta nueva línea en vez de enviar mensaje vacío (Fixes #199) |
1718

1819
---
1920

@@ -98,6 +99,49 @@ Si se desea en el futuro, implementar en fases:
9899

99100
---
100101

102+
## PR #4: Fix #199 — Shift+Enter Inserta Nueva Línea en Modo Newline
103+
104+
**PR:** [#202](https://github.com/Zoo-Code-Org/Zoo-Code/pull/202) (abierto)
105+
**Branch:** `fix/199-shift-enter-newline`
106+
**Issue:** [#199](https://github.com/Zoo-Code-Org/Zoo-Code/issues/199)
107+
**Commits:** 1
108+
**Archivos:** 2 (`ChatTextArea.tsx` + `ChatTextArea.spec.tsx`)
109+
**Riesgo:** Bajo — cambio de 1 línea lógica + actualización de test
110+
111+
### El Problema
112+
113+
En el modo de comportamiento de Enter configurado como `newline`, Shift+Enter enviaba un mensaje vacío en lugar de insertar una nueva línea. La condición original incluía `event.shiftKey` junto con `ctrlKey` y `metaKey` como combinaciones de envío:
114+
115+
```typescript
116+
// ANTES (incorrecto)
117+
if (event.shiftKey || event.ctrlKey || event.metaKey) {
118+
event.preventDefault()
119+
onSend()
120+
}
121+
```
122+
123+
### La Solución
124+
125+
Remover `event.shiftKey` de la condición. Solo Ctrl/Cmd+Enter envían mensajes en modo newline:
126+
127+
```typescript
128+
// DESPUÉS (correcto)
129+
if (event.ctrlKey || event.metaKey) {
130+
event.preventDefault()
131+
onSend()
132+
}
133+
```
134+
135+
### Comportamiento Corregido
136+
137+
| Tecla | Modo `submit` (default) | Modo `newline` |
138+
|-------|--------------------------|----------------|
139+
| Enter | Enviar mensaje | Nueva línea |
140+
| Shift+Enter | Nueva línea | Nueva línea ✅ (antes enviaba) |
141+
| Ctrl/Cmd+Enter | Enviar mensaje | Enviar mensaje |
142+
143+
---
144+
101145
## Estado de Sincronización con Upstream
102146

103147
**Última sincronización:** 2026-05-19 20:08 CST
@@ -114,6 +158,7 @@ Si se desea en el futuro, implementar en fases:
114158
| `feat/user-agent-migration` | +1/-1 | ✅ Necesita rebase |
115159
| `feature/font-size-setting` | +2/-1 | ✅ Necesita rebase |
116160
| `fix/193-diagnostic-prefix-rename` | +1/-1 | ✅ Necesita rebase |
161+
| `fix/199-shift-enter-newline` | +1/-0 | ✅ PR #202 creado |
117162
| `fix/i18n-roo-to-zoo-brand-consistency` | +2/-0 | ✅ Listo para PR |
118163
| `fix/i18n-roo-to-zoo-operational-strings` | +0/-0 | ✅ Sincronizado |
119164
| `fix/user-agent-roo-to-zoo-migration` | +0/-1 | ✅ Necesita rebase |

0 commit comments

Comments
 (0)