Commit f83d79d0 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch '29550-fix-quick-submit-on-preview' into 'master'

Fix `Ctrl+Enter` support for Quick Submit

Closes #29550

See merge request !10002
parents 011664fd ad369a96
......@@ -33,6 +33,10 @@
};
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]);
};
......
---
title: Fix quick submit short-cut on preview tab for comments
merge_request: 10002
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment