Fix `Ctrl+Enter` support for Quick Submit

This commit is contained in:
Kushal Pandya 2017-03-23 03:03:39 +00:00 committed by Alfredo Sumaran
parent 011664fdd1
commit ad369a9609
2 changed files with 8 additions and 0 deletions

View File

@ -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]);
};

View File

@ -0,0 +1,4 @@
---
title: Fix quick submit short-cut on preview tab for comments
merge_request: 10002
author: