We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d664cb commit 61105d0Copy full SHA for 61105d0
web_src/js/features/repo-issue.ts
@@ -19,7 +19,7 @@ export function initRepoIssueTimeTracking() {
19
},
20
}).modal('show');
21
$('.issue-start-time-modal input').on('keydown', (e) => {
22
- if ((e.keyCode || e.key) === 13) {
+ if (e.key === 'Enter') {
23
$('#add_time_manual_form').trigger('submit');
24
}
25
});
@@ -146,7 +146,7 @@ export function initRepoIssueSidebarList() {
146
147
148
$('.menu .ui.dropdown.label-filter').on('keydown', (e) => {
149
- if (e.altKey && e.keyCode === 13) {
+ if (e.altKey && e.key === 'Enter') {
150
const selectedItem = document.querySelector('.menu .ui.dropdown.label-filter .menu .item.selected');
151
if (selectedItem) {
152
excludeLabel(selectedItem);
0 commit comments