mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
As the title. Label/assignee share the same code. * Close #22607 * Close #20727 Also: * partially fix for #21742, now the comment reaction and menu work with keyboard. * partially fix for #17705, in most cases the comment won't be lost. * partially fix for #21539 * partially fix for #20347 * partially fix for #7329 ### The `Enter` support Before, if user presses Enter, the dropdown just disappears and nothing happens or the window reloads. After, Enter can be used to select/deselect labels, and press Esc to hide the dropdown to update the labels (still no way to cancel .... maybe you can do a Cmd+R or F5 to refresh the window to discard the changes .....) This is only a quick patch, the UX is still not perfect, but it's much better than before. ### The `confirm` before reloading And more fixes for the `reload` problem, the new behaviors: * If nothing changes (just show/hide the dropdown), then the page won't be reloaded. * If there are draft comments, show a confirm dialog before reloading, to avoid losing comments. That's the best effect can be done at the moment, unless completely refactor these dropdown related code. Screenshot of the confirm dialog: <details>  </details> --------- Co-authored-by: Brecht Van Lommel <brecht@blender.org> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
2 years ago | |
---|---|---|
.. | ||
admin | 2 years ago | |
comp | 2 years ago | |
aria.js | 2 years ago | |
aria.md | 2 years ago | |
captcha.js | 2 years ago | |
citation.js | 2 years ago | |
clipboard.js | 2 years ago | |
codeeditor.js | 2 years ago | |
colorpicker.js | 2 years ago | |
common-global.js | 2 years ago | |
common-issue.js | 2 years ago | |
common-organization.js | 2 years ago | |
contextpopup.js | 2 years ago | |
copycontent.js | 2 years ago | |
dropzone.js | 2 years ago | |
emoji.js | 2 years ago | |
eventsource.sharedworker.js | 3 years ago | |
file-fold.js | 2 years ago | |
formatting.js | 2 years ago | |
heatmap.js | 2 years ago | |
imagediff.js | 2 years ago | |
install.js | 2 years ago | |
notification.js | 2 years ago | |
org-team.js | 2 years ago | |
pull-view-file.js | 3 years ago | |
repo-branch.js | 3 years ago | |
repo-code.js | 2 years ago | |
repo-code.test.js | 2 years ago | |
repo-commit.js | 2 years ago | |
repo-common.js | 2 years ago | |
repo-diff-filetree.js | 2 years ago | |
repo-diff.js | 2 years ago | |
repo-editor.js | 2 years ago | |
repo-findfile.js | 2 years ago | |
repo-findfile.test.js | 2 years ago | |
repo-graph.js | 2 years ago | |
repo-home.js | 2 years ago | |
repo-issue-content.js | 2 years ago | |
repo-issue-pr-form.js | 2 years ago | |
repo-issue.js | 2 years ago | |
repo-legacy.js | 2 years ago | |
repo-migrate.js | 2 years ago | |
repo-migration.js | 2 years ago | |
repo-projects.js | 2 years ago | |
repo-release.js | 2 years ago | |
repo-settings.js | 3 years ago | |
repo-template.js | 2 years ago | |
repo-unicode-escape.js | 2 years ago | |
repo-wiki.js | 3 years ago | |
serviceworker.js | 2 years ago | |
sshkey-helper.js | 3 years ago | |
stopwatch.js | 2 years ago | |
tablesort.js | 2 years ago | |
tribute.js | 2 years ago | |
user-auth-webauthn.js | 2 years ago | |
user-auth.js | 2 years ago | |
user-settings.js | 2 years ago |