@seafile/sdoc-editor 0.1.133 → 0.1.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,7 +170,7 @@ var withCodeBlock = function withCodeBlock(editor) {
170
170
  return normalizeNode([node, path]);
171
171
  };
172
172
  newEditor.codeBlockOnKeyDown = function (event) {
173
- if (isHotkey('command+enter', event)) {
173
+ if (isHotkey(['command+enter', 'ctrl+enter'], event)) {
174
174
  if (newEditor.selection && !Range.isExpanded(newEditor.selection)) {
175
175
  var path = Editor.path(newEditor, newEditor.selection);
176
176
  var p = generateEmptyElement(PARAGRAPH);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.133",
3
+ "version": "0.1.134",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",