cerca icon indicating copy to clipboard operation
cerca copied to clipboard

Proposal: Allow ctrl + enter to send the post

Open protodrew opened this issue 2 years ago • 3 comments

I do it a ton unconsciously because it exists in mastodon. Might be nice but Idk how complex it might be.

protodrew avatar Feb 01 '22 23:02 protodrew

Since it’s a progressive enhancement that may be doable without affecting the rest of the forum, what do you think @cblgh ?

Thomasorus avatar Feb 04 '22 11:02 Thomasorus

@Thomasorus yes! this is ofc something we can add :) rn i'm just ambiently mulling about the strategy for progressive enhancements, such that they will improve things without increasing the maintenance burden (e.g. needing to be updated or breaking down the line)

cblgh avatar Feb 07 '22 19:02 cblgh

heyo, I'm bored at christmas and wondering if I can kick around with this and see if it works? I haven't set up a dev environment yet, so I'll see how far I get with that first. But this seems like something you could do by creating a template HTML file with a script that makes an event listener that focuses on textarea elements within form elements, and then including that at the bottom of the thread and new-thread templates.

Edit: this was fairly trivial, so I just made a PR.

milofultz avatar Dec 24 '23 21:12 milofultz