Skip to content

Commit e6d8631

Browse files
committed
__addCommentPressed
1 parent ceed43e commit e6d8631

File tree

1 file changed

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

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,7 @@ qx.Class.define("osparc.conversation.AddMessage", {
8383
}
8484
case "comment-field":
8585
control = new osparc.editor.MarkdownEditor();
86-
control.addListener("keydown", e => {
87-
if (e.isCtrlPressed() && e.getKeyIdentifier() === "Enter") {
88-
this.addComment();
89-
e.stopPropagation();
90-
e.preventDefault();
91-
}
92-
}, this);
86+
control.addListener("textChanged", () => this.__addCommentPressed(), this);
9387
control.setCompact(true);
9488
control.getChildControl("text-area").getContentElement().setStyles({
9589
"border-top-right-radius": "0px", // no roundness there to match the arrow button

0 commit comments

Comments
 (0)