Eskuero / collapsed_mastodon

Webextension for that collapses Mastodon webapp drawer and integrates replies inside the timelines in a Tweetdeck style.
GNU General Public License v3.0
17 stars 3 forks source link

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

Open RX14 opened 4 years ago

RX14 commented 4 years ago

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 https://github.com/Eskuero/collapsed_mastodon/blob/00dddd4ab016664f5064a76b1f73fd066b98667e/js/main.js#L153-L157 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 commented 4 years ago

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