Repository navigation
fix(app): Enter in het vraagveld verstuurt de vraag (#37) - #50
Merged
Merged
Conversation
Oorzaak (geverifieerd met node --test, red voór de fix): de textarea had geen keydown-handler, dus Enter viel terug op de standaard newline en alleen het formulier-submit via de knop verstuurde. Fix: keydown op het vraagveld dat bij Enter (geen Shift, geen IME-compositie, geen lopend verzoek) via form.requestSubmit() hetzelfde submit-pad gebruikt als de knop. Regressietests in app/tests/test_composer_enter.cjs; de gedeelde DOM-harness is geextraheerd naar app/tests/chat_dom.cjs (test_debug.cjs gebruikt mee). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
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.
Closes #37.
Enter in het vraagveld verstuurt nu via hetzelfde submit-pad als de Verstuur-knop (form.requestSubmit()); Shift+Enter = nieuwe regel, IME-compositie en lopend verzoek worden gerespecteerd. Regressietests in app/tests/test_composer_enter.cjs; gedeelde DOM-harness geextraheerd naar app/tests/chat_dom.cjs. Lokaal: node --test app/tests/*.cjs (25 green) + pytest (159 passed).