Skip to content

Fix Enter not working in SimpleMDE#11564

Merged
techknowlogick merged 2 commits into
go-gitea:masterfrom
silverwind:fix-enter
May 23, 2020
Merged

Fix Enter not working in SimpleMDE#11564
techknowlogick merged 2 commits into
go-gitea:masterfrom
silverwind:fix-enter

Conversation

@silverwind
Copy link
Copy Markdown
Member

This condition was wrongly inverted, leading to all enter keys being blocked.

Fixes: #11559

This condition was wrongly inverted, leading to all enter keys being
blocked.

Fixes: go-gitea#11559
Copy link
Copy Markdown
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

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

oops

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 22, 2020
@zeripath zeripath added this to the 1.13.0 milestone May 22, 2020
@silverwind
Copy link
Copy Markdown
Member Author

Backport is not required as #11497 did not land on 1.12.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 22, 2020
@silverwind
Copy link
Copy Markdown
Member Author

Small tweak pushed to also correctly handle the case when tribute is absent.

@CirnoT
Copy link
Copy Markdown
Contributor

CirnoT commented May 22, 2020

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.

@silverwind
Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Contributor

@CirnoT CirnoT left a 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.

@techknowlogick techknowlogick merged commit 1752a97 into go-gitea:master May 23, 2020
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* 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
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@wxiaoguang wxiaoguang deleted the fix-enter branch December 18, 2025 08:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to use ENTER for newline in SimpleMDE

5 participants