Skip to content

Conversation

@brichet
Copy link
Contributor

@brichet brichet commented Apr 7, 2025

Fixes #3950

The selector to handle the key events in the textarea was wrong. Fixing it fixes the issue about creating a line break when pressing Enter.
The logic is that the function handling the KeyDown event is stopping propagation, which means that the event is not handled by the lumino events handling anymore (bubbling on document, so the last to catch the event).

@github-actions
Copy link

github-actions bot commented Apr 7, 2025

Binder 👈 Launch a binder notebook on branch brichet/ipywidgets/fix_textarea_newline

@brichet brichet force-pushed the fix_textarea_newline branch from ce3f10f to 941f34c Compare April 8, 2025 09:54
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou merged commit bf28613 into jupyter-widgets:main Apr 8, 2025
22 checks passed
@brichet brichet deleted the fix_textarea_newline branch April 8, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Textarea suddenly doesn't accept line break (Enter key) anymore

2 participants