mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-25 01:33:58 +03:00
Fix Ctrl-Enter shortcut for issues (#10986)
The js-quick-submit class needs to be applied to SimpleMDE's input field, which is currently only done for wiki pages. Fixes #10937 Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
This commit is contained in:
parent
b252b23f16
commit
ecb176851b
@ -1525,6 +1525,7 @@ function setSimpleMDE($editArea) {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
$(simpleMDEditor.codemirror.getInputField()).addClass('js-quick-submit');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1556,6 +1557,7 @@ function setCommentSimpleMDE($editArea) {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
$(simplemde.codemirror.getInputField()).addClass('js-quick-submit');
|
||||||
simplemde.codemirror.setOption('extraKeys', {
|
simplemde.codemirror.setOption('extraKeys', {
|
||||||
Enter: () => {
|
Enter: () => {
|
||||||
if (!(issuesTribute.isActive || emojiTribute.isActive)) {
|
if (!(issuesTribute.isActive || emojiTribute.isActive)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user