n1k0 / tooty

An alternative multi-accounts Web client for Mastodon.
https://n1k0.github.io/tooty/v2/
157 stars 9 forks source link

Shift + Enter and Enter should not send a Toot #215

Open vjousse opened 1 year ago

vjousse commented 1 year ago

The problem is not with Shift but with Ctrl. Pressing Ctrl at some point in the toot redaction causes Enter to send the toot.

vjousse commented 10 months ago

Reopening, tooty is sometimes sending toots when it should not (by pressing enter or shift enter). I've recently switched to wayland with a bépo remapping, it could be due to that.

vjousse commented 9 months ago

It looks like the problem appears after "some time". Most of the time, after a Tooty reload I don't have the problem, but somehow, after some undefined time, the problem occurs. Here are 2 screenshots of the model at the moment when such a bug appears. Its seems that the Submit draft Msg is called before the keys events are processed.

tooty_submit_enter tooty_submit_enter_2

vjousse commented 9 months ago

It looks like ctrlPressed is set to True in both cases.