Skip to content

Commit 0db225f

Browse files
committed
ctrl+enter
1 parent 10973ee commit 0db225f

File tree

1 file changed

+7
-0
lines changed
  • services/static-webserver/client/source/class/osparc/conversation

1 file changed

+7
-0
lines changed

services/static-webserver/client/source/class/osparc/conversation/AddMessage.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ qx.Class.define("osparc.conversation.AddMessage", {
9191
}
9292
case "comment-field":
9393
control = new osparc.editor.MarkdownEditor();
94+
control.addListener("keydown", e => {
95+
if (e.isCtrlPressed() && e.getKeyIdentifier() === "Enter") {
96+
this.__addComment();
97+
e.stopPropagation();
98+
e.preventDefault();
99+
}
100+
}, this);
94101
control.getChildControl("buttons").exclude();
95102
const layout = this.getChildControl("add-comment-layout");
96103
layout.add(control, {

0 commit comments

Comments
 (0)