From d544f09c60de180096db0965a0deefe63937976d Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 18 Nov 2015 16:49:15 +0100 Subject: [PATCH] SONAR-6794 Add a keyboard shortcut to submit an issue comment --- .../src/main/js/components/issue/views/comment-form-view.js | 3 +++ 1 file changed, 3 insertions(+) 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 () { -- 2.39.5