El menú de menciones se maneja con el teclado - #107
Merged
Merged
Conversation
Un usuario nos lo dijo: al ver la sugerencia de @agentE su instinto era darle Tab. El menu solo funcionaba con el mouse: Tab sacaba el cursor de la caja y Enter mandaba el "@ag" a medias, que no despierta a nadie. - La primera opcion sale resaltada; Tab o Enter la aceptan y las flechas la mueven (dan la vuelta). Con el menu cerrado, Enter manda como siempre. - El resaltado se ve: el fondo del hover era del mismo tono que el menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJ5oT2Xm3VZMvbPAcgKbz4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué pasaba
Lo reportó un usuario: "A veces me quiere autocompletar por ejemplo el @agent y mi instinto es darle tab".
El menú de menciones solo funcionaba con el mouse:
@aga medias, que no despierta a nadie.--paneles del mismo tono que el fondo del menú.Cambios
MentionMenu.tsx: las opciones salen deopcionesDeMencion()(exportada), para que la caja de escribir sepa qué acepta el teclado. El menú recibeseleccion, marca la resaltada (mention-activo, conrole="listbox"/"option") y el clic sigue igual.App.tsx: con el menú abierto, Tab o Enter aceptan la resaltada y ↑/↓ la mueven, dando la vuelta. Al cambiar lo escrito se vuelve a la primera. Con el menú cerrado, Enter manda como siempre, Shift+Enter hace salto de línea y Esc cierra el menú.styles.css: la resaltada y el hover se distinguen con un fondo más claro y una raya del color de acento.Cómo se probó
Playwright contra el server real, en una sala con
agente-1(el menú ofrece@agente-1y@agente). main falla 8 de 14; la rama pasa las 14:@ag+ Tab da@agente-1, el cursor sigue en la caja y el menú se cierra.@agente; ↑ desde la primera da la vuelta a la última.Regresiones: primer mensaje (#105), mensajes confirmados (#106, sus 6 escenarios),
npm run typecheck,npm run buildy las 8 demos.🤖 Generated with Claude Code
https://claude.ai/code/session_01HJ5oT2Xm3VZMvbPAcgKbz4
Generated by Claude Code