]> source.dussan.org Git - gitea.git/commitdiff
Fix incorrect "tabindex" attributes (#26733) (#26734)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 26 Aug 2023 02:44:17 +0000 (10:44 +0800)
committerGitHub <noreply@github.com>
Sat, 26 Aug 2023 02:44:17 +0000 (10:44 +0800)
Backport #26733 manually

Co-authored-by: Giteabot <teabot@gitea.io>
templates/org/create.tmpl
templates/org/settings/options.tmpl
templates/projects/view.tmpl
templates/repo/create.tmpl
templates/repo/editor/commit_form.tmpl
templates/repo/issue/new_form.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/projects/view.tmpl
templates/repo/settings/options.tmpl
templates/repo/settings/webhook/settings.tmpl
templates/user/dashboard/navbar.tmpl

index 7e988ba0c792adeacda38e69c16abb1c62ca7e60..966150aa93b929dca141bda538eb1a5a78f02a32 100644 (file)
                                                <span class="inline required field"><label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label></span>
                                                <div class="inline-grouped-list">
                                                        <div class="ui radio checkbox">
-                                                               <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}>
+                                                               <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}>
                                                                <label>{{.locale.Tr "org.settings.visibility.public"}}</label>
                                                        </div>
                                                        <div class="ui radio checkbox">
-                                                               <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}>
+                                                               <input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}>
                                                                <label>{{.locale.Tr "org.settings.visibility.limited"}}</label>
                                                        </div>
                                                        <div class="ui radio checkbox">
-                                                               <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}>
+                                                               <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}>
                                                                <label>{{.locale.Tr "org.settings.visibility.private"}}</label>
                                                        </div>
                                                </div>
index 21b14200ff0c5c5b8afb9bf6bb43862d02f131f8..a54736861792b18874ab66ed327765a57decdae1 100644 (file)
                                                        <label for="visibility">{{.locale.Tr "org.settings.visibility"}}</label>
                                                        <div class="field">
                                                                <div class="ui radio checkbox">
-                                                                       <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}>
+                                                                       <input class="enable-system-radio" name="visibility" type="radio" value="0" {{if eq .CurrentVisibility 0}}checked{{end}}>
                                                                        <label>{{.locale.Tr "org.settings.visibility.public"}}</label>
                                                                </div>
                                                        </div>
                                                        <div class="field">
                                                                <div class="ui radio checkbox">
-                                                                       <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}>
+                                                                       <input class="enable-system-radio" name="visibility" type="radio" value="1" {{if eq .CurrentVisibility 1}}checked{{end}}>
                                                                        <label>{{.locale.Tr "org.settings.visibility.limited"}}</label>
                                                                </div>
                                                        </div>
                                                        <div class="field">
                                                                <div class="ui radio checkbox">
-                                                                       <input class="enable-system-radio" tabindex="0" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}>
+                                                                       <input class="enable-system-radio" name="visibility" type="radio" value="2" {{if eq .CurrentVisibility 2}}checked{{end}}>
                                                                        <label>{{.locale.Tr "org.settings.visibility.private"}}</label>
                                                                </div>
                                                        </div>
index 35493775b56ef0b1a2a365a6dc0c7809bf384e95..b6d28e8b563c19fdfb6f16e2cb23f5f5723dee63 100644 (file)
                                        </div>
                                        {{if and $.CanWriteProjects (ne .ID 0)}}
                                                <div class="ui dropdown jump item">
-                                                       <div class="not-mobile gt-px-3" tabindex="-1">
+                                                       <div class="not-mobile gt-px-3">
                                                                {{svg "octicon-kebab-horizontal"}}
                                                        </div>
-                                                       <div class="menu user-menu" tabindex="-1">
+                                                       <div class="menu user-menu">
                                                                <a class="item show-modal button" data-modal="#edit-project-board-modal-{{.ID}}">
                                                                        {{svg "octicon-pencil"}}
                                                                        {{$.locale.Tr "repo.projects.column.edit"}}
index 05e7052ff4e5de0e82ed3da7872966f66e35d28c..4c781379f4c81270c623352c8824da786dd70d01 100644 (file)
                                                <div class="inline field">
                                                        <label>{{.locale.Tr "repo.template.items"}}</label>
                                                        <div class="ui checkbox">
-                                                               <input name="git_content" type="checkbox" tabindex="0" {{if .git_content}}checked{{end}}>
+                                                               <input name="git_content" type="checkbox" {{if .git_content}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.template.git_content"}}</label>
                                                        </div>
                                                        <div class="ui checkbox" {{if not .SignedUser.CanEditGitHook}}data-tooltip-content="{{.locale.Tr "repo.template.git_hooks_tooltip"}}"{{end}}>
-                                                               <input name="git_hooks" type="checkbox" tabindex="0" {{if .git_hooks}}checked{{end}}>
+                                                               <input name="git_hooks" type="checkbox" {{if .git_hooks}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.template.git_hooks"}}</label>
                                                        </div>
                                                </div>
                                                <div class="inline field">
                                                        <label></label>
                                                        <div class="ui checkbox">
-                                                               <input name="webhooks" type="checkbox" tabindex="0" {{if .webhooks}}checked{{end}}>
+                                                               <input name="webhooks" type="checkbox" {{if .webhooks}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.template.webhooks"}}</label>
                                                        </div>
                                                        <div class="ui checkbox">
-                                                               <input name="topics" type="checkbox" tabindex="0" {{if .topics}}checked{{end}}>
+                                                               <input name="topics" type="checkbox" {{if .topics}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.template.topics"}}</label>
                                                        </div>
                                                </div>
                                                <div class="inline field">
                                                        <label></label>
                                                        <div class="ui checkbox">
-                                                               <input name="avatar" type="checkbox" tabindex="0" {{if .avatar}}checked{{end}}>
+                                                               <input name="avatar" type="checkbox" {{if .avatar}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.template.avatar"}}</label>
                                                        </div>
                                                        <div class="ui checkbox">
-                                                               <input name="labels" type="checkbox" tabindex="0" {{if .labels}}checked{{end}}>
+                                                               <input name="labels" type="checkbox" {{if .labels}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.template.issue_labels"}}</label>
                                                        </div>
                                                </div>
                                                </div>
                                                <div class="inline field">
                                                        <div class="ui checkbox" id="auto-init">
-                                                               <input name="auto_init" type="checkbox" tabindex="0" {{if .auto_init}}checked{{end}}>
+                                                               <input name="auto_init" type="checkbox" {{if .auto_init}}checked{{end}}>
                                                                <label>{{.locale.Tr "repo.auto_init"}}</label>
                                                        </div>
                                                </div>
                                                <div class="inline field">
                                                        <label>{{.locale.Tr "repo.template"}}</label>
                                                        <div class="ui checkbox">
-                                                               <input name="template" type="checkbox" tabindex="0">
+                                                               <input name="template" type="checkbox">
                                                                <label>{{.locale.Tr "repo.template_helper"}}</label>
                                                        </div>
                                                </div>
index 6a3f86f9fc979062154dbffb42ac743ce2cdb285..3177fa424db61eb3316b9bf725bf4db0f5615b02 100644 (file)
@@ -16,7 +16,7 @@
                </div>
                <div class="inline field">
                        <div class="ui checkbox">
-                               <input name="signoff" type="checkbox" tabindex="0">
+                               <input name="signoff" type="checkbox">
                                <label>{{.locale.Tr "repo.editor.signoff_desc"}}</label>
                        </div>
                </div>
index 262cb013c25c94abaf8eb1ed636da8ea217c0197..d9b6489bae5b101218529a7702f4f96da3517871 100644 (file)
@@ -11,7 +11,7 @@
                                {{avatar $.Context .SignedUser 40}}
                                <div class="ui segment content gt-my-0">
                                        <div class="field">
-                                               <input name="title" id="issue_title" placeholder="{{.locale.Tr "repo.milestones.title"}}" value="{{if .TitleQuery}}{{.TitleQuery}}{{else if .IssueTemplateTitle}}{{.IssueTemplateTitle}}{{else}}{{.title}}{{end}}" tabindex="3" autofocus required maxlength="255" autocomplete="off">
+                                               <input name="title" id="issue_title" placeholder="{{.locale.Tr "repo.milestones.title"}}" value="{{if .TitleQuery}}{{.TitleQuery}}{{else if .IssueTemplateTitle}}{{.IssueTemplateTitle}}{{else}}{{.title}}{{end}}" autofocus required maxlength="255" autocomplete="off">
                                                {{if .PageIsComparePull}}
                                                        <div class="title_wip_desc" data-wip-prefixes="{{JsonUtils.EncodeToString .PullRequestWorkInProgressPrefixes}}">{{.locale.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0| Escape) | Safe}}</div>
                                                {{end}}
@@ -35,7 +35,7 @@
                                                {{template "repo/issue/comment_tab" .}}
                                        {{end}}
                                        <div class="text right">
-                                               <button class="ui green button loading-button" tabindex="6">
+                                               <button class="ui green button loading-button">
                                                        {{if .PageIsComparePull}}
                                                                {{.locale.Tr "repo.pulls.create"}}
                                                        {{else}}
index 7c2353521566361cc67600772296bcc026db4206..d0ed9dd6b426f96a95bd081f55f85eb71c8bb47b 100644 (file)
                                                </div>
 
                                                <div class="field">
-                                                       <div class="ui fluid dropdown selection" tabindex="0">
+                                                       <div class="ui fluid dropdown selection">
 
                                                                <select name="reason">
                                                                        <option value=""> </option>
index 2d98c705abbd8756145bc53d97efc2c88ff03618..c5676b4e45990b02c437769d8d031e15a54f987a 100644 (file)
                                        </div>
                                        {{if and $.CanWriteProjects (not $.Repository.IsArchived) (ne .ID 0)}}
                                                <div class="ui dropdown jump item">
-                                                       <div class="not-mobile gt-px-3" tabindex="-1">
+                                                       <div class="not-mobile gt-px-3">
                                                                {{svg "octicon-kebab-horizontal"}}
                                                        </div>
-                                                       <div class="menu user-menu" tabindex="-1">
+                                                       <div class="menu user-menu">
                                                                <a class="item show-modal button" data-modal="#edit-project-board-modal-{{.ID}}">
                                                                        {{svg "octicon-pencil"}}
                                                                        {{$.locale.Tr "repo.projects.column.edit"}}
index 5efb4d914d2ea826f7ab6594ec2ddd1a11ed7431..a261ce95b5f38a04bc7622917d7a6a817ca9b817 100644 (file)
                                                {{else}}
                                                <div class="ui radio checkbox">
                                                {{end}}
-                                                       <input class="enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="false" data-target="#external_wiki_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalWiki)}}checked{{end}}>
+                                                       <input class="enable-system-radio" name="enable_external_wiki" type="radio" value="false" data-target="#external_wiki_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalWiki)}}checked{{end}}>
                                                        <label>{{.locale.Tr "repo.settings.use_internal_wiki"}}</label>
                                                </div>
                                        </div>
                                                {{else}}
                                                <div class="ui radio checkbox">
                                                {{end}}
-                                                       <input class="enable-system-radio" tabindex="0" name="enable_external_wiki" type="radio" value="true" data-target="#external_wiki_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalWiki}}checked{{end}}>
+                                                       <input class="enable-system-radio" name="enable_external_wiki" type="radio" value="true" data-target="#external_wiki_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalWiki}}checked{{end}}>
                                                        <label>{{.locale.Tr "repo.settings.use_external_wiki"}}</label>
                                                </div>
                                        </div>
                                                {{else}}
                                                <div class="ui radio checkbox">
                                                {{end}}
-                                                       <input class="enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}checked{{end}}>
+                                                       <input class="enable-system-radio" name="enable_external_tracker" type="radio" value="false" data-context="#internal_issue_box" data-target="#external_issue_box" {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}checked{{end}}>
                                                        <label>{{.locale.Tr "repo.settings.use_internal_issue_tracker"}}</label>
                                                </div>
                                        </div>
                                                {{else}}
                                                <div class="ui radio checkbox">
                                                {{end}}
-                                                       <input class="enable-system-radio" tabindex="0" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalTracker}}checked{{end}}>
+                                                       <input class="enable-system-radio" name="enable_external_tracker" type="radio" value="true" data-context="#internal_issue_box" data-target="#external_issue_box" {{if .Repository.UnitEnabled $.Context $.UnitTypeExternalTracker}}checked{{end}}>
                                                        <label>{{.locale.Tr "repo.settings.use_external_issue_tracker"}}</label>
                                                </div>
                                        </div>
                                                        <p>
                                                                {{.locale.Tr "repo.settings.default_merge_style_desc"}}
                                                        </p>
-                                                       <div class="ui dropdown selection" tabindex="0">
+                                                       <div class="ui dropdown selection">
                                                                <select name="pulls_default_merge_style">
                                                                        <option value="merge" {{if or (not $pullRequestEnabled) (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "merge")}}selected{{end}}>{{.locale.Tr "repo.pulls.merge_pull_request"}}</option>
                                                                        <option value="rebase" {{if or (not $pullRequestEnabled) (eq $prUnit.PullRequestsConfig.DefaultMergeStyle "rebase")}}selected{{end}}>{{.locale.Tr "repo.pulls.rebase_merge_pull_request"}}</option>
index 8b03a3c959792b6765057e236e04fdc5d31e98e3..6c2b8c0386cbf85726b63a4697a304c298fb5ed8 100644 (file)
@@ -31,7 +31,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="create" type="checkbox" tabindex="0" {{if .Webhook.Create}}checked{{end}}>
+                                       <input name="create" type="checkbox" {{if .Webhook.Create}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_create"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_create_desc"}}</span>
                                </div>
@@ -41,7 +41,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="delete" type="checkbox" tabindex="0" {{if .Webhook.Delete}}checked{{end}}>
+                                       <input name="delete" type="checkbox" {{if .Webhook.Delete}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_delete"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_delete_desc"}}</span>
                                </div>
@@ -51,7 +51,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="fork" type="checkbox" tabindex="0" {{if .Webhook.Fork}}checked{{end}}>
+                                       <input name="fork" type="checkbox" {{if .Webhook.Fork}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_fork"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_fork_desc"}}</span>
                                </div>
@@ -61,7 +61,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="push" type="checkbox" tabindex="0" {{if .Webhook.Push}}checked{{end}}>
+                                       <input name="push" type="checkbox" {{if .Webhook.Push}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_push"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_push_desc"}}</span>
                                </div>
@@ -71,7 +71,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="repository" type="checkbox" tabindex="0" {{if .Webhook.Repository}}checked{{end}}>
+                                       <input name="repository" type="checkbox" {{if .Webhook.Repository}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_repository"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_repository_desc"}}</span>
                                </div>
@@ -81,7 +81,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="release" type="checkbox" tabindex="0" {{if .Webhook.Release}}checked{{end}}>
+                                       <input name="release" type="checkbox" {{if .Webhook.Release}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_release"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_release_desc"}}</span>
                                </div>
@@ -91,7 +91,7 @@
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="package" type="checkbox" tabindex="0" {{if .Webhook.Package}}checked{{end}}>
+                                       <input name="package" type="checkbox" {{if .Webhook.Package}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_package"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_package_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="wiki" type="checkbox" tabindex="0" {{if .Webhook.Wiki}}checked{{end}}>
+                                       <input name="wiki" type="checkbox" {{if .Webhook.Wiki}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_wiki"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_wiki_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="issues" type="checkbox" tabindex="0" {{if .Webhook.Issues}}checked{{end}}>
+                                       <input name="issues" type="checkbox" {{if .Webhook.Issues}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_issues"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_issues_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="issue_assign" type="checkbox" tabindex="0" {{if .Webhook.IssueAssign}}checked{{end}}>
+                                       <input name="issue_assign" type="checkbox" {{if .Webhook.IssueAssign}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_issue_assign"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_issue_assign_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="issue_label" type="checkbox" tabindex="0" {{if .Webhook.IssueLabel}}checked{{end}}>
+                                       <input name="issue_label" type="checkbox" {{if .Webhook.IssueLabel}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_issue_label"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_issue_label_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="issue_milestone" type="checkbox" tabindex="0" {{if .Webhook.IssueMilestone}}checked{{end}}>
+                                       <input name="issue_milestone" type="checkbox" {{if .Webhook.IssueMilestone}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_issue_milestone"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_issue_milestone_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="issue_comment" type="checkbox" tabindex="0" {{if .Webhook.IssueComment}}checked{{end}}>
+                                       <input name="issue_comment" type="checkbox" {{if .Webhook.IssueComment}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_issue_comment"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_issue_comment_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request" type="checkbox" tabindex="0" {{if .Webhook.PullRequest}}checked{{end}}>
+                                       <input name="pull_request" type="checkbox" {{if .Webhook.PullRequest}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_assign" type="checkbox" tabindex="0" {{if .Webhook.PullRequestAssign}}checked{{end}}>
+                                       <input name="pull_request_assign" type="checkbox" {{if .Webhook.PullRequestAssign}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_assign"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_assign_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_label" type="checkbox" tabindex="0" {{if .Webhook.PullRequestLabel}}checked{{end}}>
+                                       <input name="pull_request_label" type="checkbox" {{if .Webhook.PullRequestLabel}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_label"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_label_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_milestone" type="checkbox" tabindex="0" {{if .Webhook.PullRequestMilestone}}checked{{end}}>
+                                       <input name="pull_request_milestone" type="checkbox" {{if .Webhook.PullRequestMilestone}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_milestone"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_milestone_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_comment" type="checkbox" tabindex="0" {{if .Webhook.PullRequestComment}}checked{{end}}>
+                                       <input name="pull_request_comment" type="checkbox" {{if .Webhook.PullRequestComment}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_comment"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_comment_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_review" type="checkbox" tabindex="0" {{if .Webhook.PullRequestReview}}checked{{end}}>
+                                       <input name="pull_request_review" type="checkbox" {{if .Webhook.PullRequestReview}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_review"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_review_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_sync" type="checkbox" tabindex="0" {{if .Webhook.PullRequestSync}}checked{{end}}>
+                                       <input name="pull_request_sync" type="checkbox" {{if .Webhook.PullRequestSync}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_sync"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_sync_desc"}}</span>
                                </div>
                <div class="seven wide column">
                        <div class="field">
                                <div class="ui checkbox">
-                                       <input name="pull_request_review_request" type="checkbox" tabindex="0" {{if .Webhook.PullRequestReviewRequest}}checked{{end}}>
+                                       <input name="pull_request_review_request" type="checkbox" {{if .Webhook.PullRequestReviewRequest}}checked{{end}}>
                                        <label>{{.locale.Tr "repo.settings.event_pull_request_review_request"}}</label>
                                        <span class="help">{{.locale.Tr "repo.settings.event_pull_request_review_request_desc"}}</span>
                                </div>
 <!-- Branch filter -->
 <div class="field">
        <label for="branch_filter">{{.locale.Tr "repo.settings.branch_filter"}}</label>
-       <input name="branch_filter" type="text" tabindex="0" value="{{or .Webhook.BranchFilter "*"}}">
+       <input name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}">
        <span class="help">{{.locale.Tr "repo.settings.branch_filter_desc" | Str2html}}</span>
 </div>
 
 
 <div class="inline field">
        <div class="ui checkbox">
-               <input name="active" type="checkbox" tabindex="0" {{if or $isNew .Webhook.IsActive}}checked{{end}}>
+               <input name="active" type="checkbox" {{if or $isNew .Webhook.IsActive}}checked{{end}}>
                <label>{{.locale.Tr "repo.settings.active"}}</label>
                <span class="help">{{.locale.Tr "repo.settings.active_helper"}}</span>
        </div>
index 79212d82a5e98c983d15b2a916faa8efca7d535f..a7ecc85a47f86c5f8d5b44cae112814dec4632a6 100644 (file)
@@ -11,7 +11,7 @@
                                        </span>
                                        {{svg "octicon-triangle-down" 14 "dropdown icon"}}
                                </span>
-                               <div class="context user overflow menu" tabindex="-1">
+                               <div class="context user overflow menu">
                                        <div class="ui header">
                                                {{.locale.Tr "home.switch_dashboard_context"}}
                                        </div>
@@ -55,7 +55,7 @@
                                                {{end}}
                                                {{svg "octicon-triangle-down" 14 "dropdown icon"}}
                                        </span>
-                                       <div class="context user overflow menu" tabindex="-1">
+                                       <div class="context user overflow menu">
                                                <div class="ui header">
                                                        {{.locale.Tr "home.filter_by_team_repositories"}}
                                                </div>