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
[ticket/14422] Support cmd+enter & ctrl+enter for submitting message #4211
Conversation
😂 sorry! |
[ticket/14422] Support cmd+enter for submitting message
lgtm 👍 |
[ticket/14422] Support cmd+enter & ctrl+enter for submitting message
Great, this seems to be broken to me. I just get my post content removed and the page refreshed ...
this seems to work
@callumacrae what do you think? |
@marc1706 I confirm your situation in full reply. Because of this PR I was forced to remove Ctrl+Enter feature from QuickReply extension that worked correctly for years. However the added code in this PR submits the form regardless of the submit button name that is used by the server side. And what if an extension author decides to use Sorry for the next statement, but why was the problem found only after the core release? |
The initial fix here is definitely incomplete and broken. It was working fine when it was merged but as you mentioned, the side effects were not fully considered. Why this was only found after the core release? People have been using 3.1 in their dev environments for a while after this was merged. There was also a RC release. This could have been improved during review and after while testing the pre-release. Nonetheless, some minor issue can always be overseen as happened in this case. Moving on from this, there should just be a new pull request that fixes it. I don't think that functional tests are worth it for this specific case (extra work needed vs. possible regressions it might fix in the future --> lot of work vs. close to zero / none). |
@marc1706 thank you very much for the explanation. |
@marc1706 why does that fix work? I haven't tested it, but that sounds like our markup is invalid to me |
Yes, it might be possible that our markup is not correctly structured. I don't think we should have this side effect for every text area though? |
This will only happen on textareas with submittable parent forms. If the markup is correct, this should work everywhere |
Previous PR: #4134
Ticket: https://tracker.phpbb.com/browse/PHPBB3-14422