提交 020c0d1d 编写于 作者: P Peng Lyu

Re microsoft/vscode-pull-request-github#227. Cmd enter to submit comment.

上级 35b0d44c
......@@ -356,7 +356,7 @@ export class ReviewZoneWidget extends ZoneWidget {
}
}
if (this._commentEditor.getModel().getValueLength() !== 0 && ev.keyCode === KeyCode.Enter && ev.ctrlKey) {
if (this._commentEditor.getModel().getValueLength() !== 0 && ev.keyCode === KeyCode.Enter && (ev.ctrlKey || ev.metaKey)) {
let lineNumber = this._commentGlyph.getPosition().position.lineNumber;
this.createComment(lineNumber);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册