Skip to content

Commit

Permalink
Merge pull request #990 from lecjy/feature/issue-986
Browse files Browse the repository at this point in the history
fix #986
  • Loading branch information
hailiang-wang committed Dec 8, 2023
2 parents 3111944 + 4131945 commit 9f536ec
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,12 @@ html
sendMessage();
});
} else {
// Ctrl+Enter 提交表单
K.ctrl(document, 13, function () {
self.sync();
sendMessage();
});
// Ctrl+Enter 提交表单
K.ctrl(self.edit.doc, 13, function () {
self.sync();
sendMessage();
// Enter 提交表单
K(self.edit.doc).bind("keydown",function (event) {
if (event.keyCode == 13 && !event.ctrlKey) {
self.sync();
sendMessage();
}
});
}
}
Expand Down

0 comments on commit 9f536ec

Please sign in to comment.