ENTER and SHIFT+ENTER behaviour #352
Unanswered
himadridev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@petyosi Thanks for starting a discussion. Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for building this awesome library 👏🏼
I have a use-case of a chat interface, where user input field is markdown editor (similar to slack input field). As per requirement, user should be able to submit the message on ENTER press and to break new line user has to use SHIFT+ENTER.
I have created a plugin and registered KEY_ENTER_COMMAND to capture & handle the ENTER 👇🏼
But with this approach, editor's line break for new formatting stopped (using SHIFT+ENTER for new line) 👇🏼
issue-with-my-approach.mov
That's because my custom command handler blocking the expected ENTER press for the editor.
Q: Is there any way to use SHIFT+ENTER for line break for new formatting? So that I can use ENTER for submitting the message.
Beta Was this translation helpful? Give feedback.
All reactions