Fix Ctrl+Enter
support for Quick Submit
This commit is contained in:
parent
011664fdd1
commit
ad369a9609
2 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
Shortcuts.prototype.toggleMarkdownPreview = function(e) {
|
Shortcuts.prototype.toggleMarkdownPreview = function(e) {
|
||||||
|
// Check if short-cut was triggered while in Write Mode
|
||||||
|
if ($(e.target).hasClass('js-note-text')) {
|
||||||
|
$('.js-md-preview-button').focus();
|
||||||
|
}
|
||||||
return $(document).triggerHandler('markdown-preview:toggle', [e]);
|
return $(document).triggerHandler('markdown-preview:toggle', [e]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Fix quick submit short-cut on preview tab for comments
|
||||||
|
merge_request: 10002
|
||||||
|
author:
|
Loading…
Reference in a new issue