Skip to content
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

ctrl+enter to post misbehaving in pleroma 2.1.2 FE #10

Open
RX14 opened this issue Sep 30, 2020 · 1 comment
Open

ctrl+enter to post misbehaving in pleroma 2.1.2 FE #10

RX14 opened this issue Sep 30, 2020 · 1 comment

Comments

@RX14
Copy link
Contributor

RX14 commented Sep 30, 2020

I upgraded to pleroma 2.1.2 and the bundled FE doesn't handle ctrl+enter well with this addon enabled. When ctrl+enter is pressed, the compose box disappears like usual but no post is sent. Clicking the "post" button works as usual.

I removed

if (event.ctrlKey && document.activeElement == textarea && !send.disabled) {
undoMinimalScroll(formw);
containerw.appendChild(formw);
containerw.style.display = "none";
}
and it fixed the bug, with the downside that you need to press esc manually to get the compose window to go. Moving the code to onkeyup didnt seem to help either. I don't want to remove this code, but I can't debug this either, so it might be best to disable it on pleroma for now unless it can be debugged,

@RX14
Copy link
Contributor Author

RX14 commented Oct 1, 2020

Ended up converting this to a userscript so I can develop it on my own when it breaks for pleroma https://github.com/RX14/collapsed_mastodon

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

No branches or pull requests

1 participant