Commit ad369a96 authored by Kushal Pandya's avatar Kushal Pandya Committed by Alfredo Sumaran

Fix `Ctrl+Enter` support for Quick Submit

parent 011664fd
......@@ -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