vue-devui 1.6.27 → 1.6.28
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.
- package/code-review/index.es.js +326 -242
- package/code-review/index.umd.js +27 -27
- package/editor-md/index.es.js +17 -0
- package/editor-md/index.umd.js +19 -19
- package/package.json +1 -1
- package/types/code-review/src/code-review-types.d.ts +12 -0
- package/types/code-review/src/composables/use-code-review-comment.d.ts +2 -1
- package/types/code-review/src/composables/use-code-review-expand.d.ts +2 -2
- package/types/code-review/src/composables/use-code-review-line-selection.d.ts +17 -5
- package/types/code-review/src/composables/use-code-review.d.ts +2 -3
- package/types/code-review/src/utils.d.ts +20 -2
- package/vue-devui.es.js +344 -243
- package/vue-devui.umd.js +86 -86
package/editor-md/index.es.js
CHANGED
|
@@ -7500,6 +7500,23 @@ function useEditorMd(props, ctx) {
|
|
|
7500
7500
|
setTimeout(() => {
|
|
7501
7501
|
ctx.emit("contentChange", editorIns.getValue());
|
|
7502
7502
|
}, 100);
|
|
7503
|
+
containerRef.value.addEventListener("keydown", (e) => {
|
|
7504
|
+
let keyCombination = "";
|
|
7505
|
+
if (e.ctrlKey) {
|
|
7506
|
+
keyCombination += "Ctrl-";
|
|
7507
|
+
}
|
|
7508
|
+
if (e.altKey) {
|
|
7509
|
+
keyCombination += "Alt-";
|
|
7510
|
+
}
|
|
7511
|
+
if (e.shiftKey) {
|
|
7512
|
+
keyCombination += "Shift-";
|
|
7513
|
+
}
|
|
7514
|
+
keyCombination += e.key.toUpperCase();
|
|
7515
|
+
if (shortKeys[keyCombination] && typeof shortKeys[keyCombination] === "function") {
|
|
7516
|
+
e.preventDefault();
|
|
7517
|
+
shortKeys[keyCombination]();
|
|
7518
|
+
}
|
|
7519
|
+
});
|
|
7503
7520
|
};
|
|
7504
7521
|
const onPaste = (e) => {
|
|
7505
7522
|
const clipboardData = e.clipboardData;
|