Repository navigation
Extract submission-via-ctrl-enter-everywhere from others - #5607
Conversation
addQuickSubmit() as a separate feature allow-submission-via-ctrl-enteraddQuickSubmit() as a separate feature: allow-submission-via-ctrl-enter
Yes, it can be used there
The feature should not be necessarily limited to files, we're just ensuring that GitHub’s own behavior is consistent. Maybe |
addQuickSubmit() as a separate feature: allow-submission-via-ctrl-enterallow-submission-via-ctrl-enter from avoid-accidental-submissions
to `submission-via-ctrl-enter-everywere`
Ok, so I now use the use of I also tested the former by changing the useragent in Chrome to Mac and it's working ok : |
allow-submission-via-ctrl-enter from avoid-accidental-submissionssubmission-via-ctrl-enter-everywere from avoid-accidental-submissions
Regarding the above, the currently used text for the created shortcut is "'Publish a new/edited file'". |
We should drop it. GitHub does not show that shortcut anywhere else
Good find! Let's move those selectors here too since it's identical. |
Ok, I dropped the shortcut.
I moved the selector. |
submission-via-ctrl-enter-everywere from avoid-accidental-submissionssubmission-via-ctrl-enter-everywhere from avoid-accidental-submissions
Co-authored-by: Flo Edelmann <[email protected]>
submission-via-ctrl-enter-everywhere from avoid-accidental-submissionssubmission-via-ctrl-enter-everywhere from other features
submission-via-ctrl-enter-everywhere from other featuressubmission-via-ctrl-enter-everywhere from others

This PR follows the suggestion by @fregante in #4252 (comment) i.e. extracts the
addQuickSubmit()function (which adds ability to submit new/edited files via ctrl-enter) as a separate feature:allow-submission-via-ctrl-enter.Test URLs
Screenshot
Notes to reviewers:
avoid-accidental-submissionsfeature #4252 (comment) :refined-github/source/features/create-release-shortcut.tsx
Lines 6 to 8 in c2526b0
isMac(with a ternaryif) instead of'ctrl/cmd enter': 'Publish a new/edited file',?Can it be used when defining keyboard shortcuts ?
allow-submission-with-ctrl-enter-when-publishing-files