-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Enter not working in SimpleMDE #11564
Conversation
This condition was wrongly inverted, leading to all enter keys being blocked. Fixes: go-gitea#11559
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
Backport is not required as #11497 did not land on 1.12. |
Small tweak pushed to also correctly handle the case when tribute is absent. |
The arrow-up keypress is not handled correct, it moves cursor within SimpleMDE box and pressing enter after using it to to navigate emoji list just closes the box without emoji being inserted. arrow-down works fine. |
That does sound like a unrelated issue. I'm not motivated to deal with the CodeMirror/SimpleMDE/Tribute amalgamation, it should be fixed eventually with #10729. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed, it happens on v1.11 too, so unrelated.
* Fix Enter not working in SimpleMDE This condition was wrongly inverted, leading to all enter keys being blocked. Fixes: go-gitea#11559 * fix it for absent tribute too
This condition was wrongly inverted, leading to all enter keys being blocked.
Fixes: #11559