From: Stas Vilchik Date: Wed, 18 Nov 2015 15:49:15 +0000 (+0100) Subject: SONAR-6794 Add a keyboard shortcut to submit an issue comment X-Git-Tag: 5.3-RC1~229 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d544f09c60de180096db0965a0deefe63937976d;p=sonarqube.git SONAR-6794 Add a keyboard shortcut to submit an issue comment --- diff --git a/server/sonar-web/src/main/js/components/issue/views/comment-form-view.js b/server/sonar-web/src/main/js/components/issue/views/comment-form-view.js index c1dc3cfd172..6c95b4478dd 100644 --- a/server/sonar-web/src/main/js/components/issue/views/comment-form-view.js +++ b/server/sonar-web/src/main/js/components/issue/views/comment-form-view.js @@ -41,6 +41,9 @@ export default PopupView.extend({ if (e.keyCode === 27) { this.destroy(); } + if (e.keyCode === 13 && (e.metaKey || e.ctrlKey)) { + this.submit(); + } }, cancel: function () {