Skip to content

Commit ecb1768

Browse files
michaelkuhnlafrikszeripathguillep2k
authored
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 <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: guillep2k <[email protected]>
1 parent b252b23 commit ecb1768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,7 @@ function setSimpleMDE($editArea) {
15251525
},
15261526
]
15271527
});
1528+
$(simpleMDEditor.codemirror.getInputField()).addClass('js-quick-submit');
15281529

15291530
return true;
15301531
}
@@ -1556,6 +1557,7 @@ function setCommentSimpleMDE($editArea) {
15561557
},
15571558
]
15581559
});
1560+
$(simplemde.codemirror.getInputField()).addClass('js-quick-submit');
15591561
simplemde.codemirror.setOption('extraKeys', {
15601562
Enter: () => {
15611563
if (!(issuesTribute.isActive || emojiTribute.isActive)) {

0 commit comments

Comments
 (0)