vue-editify 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
package/lib/editify.es.js CHANGED
@@ -2744,15 +2744,15 @@ const mergeWithSpaceTextElement = function(element2) {
2744
2744
  const { Mac: Mac$1 } = platform$1.os();
2745
2745
  const isUndo = function(e) {
2746
2746
  if (Mac$1) {
2747
- return e.key == "z" && e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
2747
+ return e.key.toLocaleLowerCase() == "z" && e.metaKey && !e.shiftKey && !e.altKey && !e.ctrlKey;
2748
2748
  }
2749
- return e.key == "z" && e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey;
2749
+ return e.key.toLocaleLowerCase() == "z" && e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey;
2750
2750
  };
2751
2751
  const isRedo = function(e) {
2752
2752
  if (Mac$1) {
2753
- return e.key == "z" && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey;
2753
+ return e.key.toLocaleLowerCase() == "z" && e.metaKey && e.shiftKey && !e.altKey && !e.ctrlKey;
2754
2754
  }
2755
- return e.key == "z" && e.ctrlKey && !e.metaKey && !e.shiftKey && !e.altKey;
2755
+ return e.key.toLocaleLowerCase() == "y" && e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey;
2756
2756
  };
2757
2757
  const setClipboardData = function(data2, result) {
2758
2758
  let html = "";
@@ -5008,7 +5008,7 @@ class AlexEditor {
5008
5008
  event$1.off(this.$el, "beforeinput.alex_editor compositionstart.alex_editor compositionupdate.alex_editor compositionend.alex_editor keydown.alex_editor cut.alex_editor paste.alex_editor copy.alex_editor dragstart.alex_editor drop.alex_editor focus.alex_editor blur.alex_editor");
5009
5009
  }
5010
5010
  }
5011
- const version$2 = "1.4.33";
5011
+ const version$2 = "1.4.34";
5012
5012
  console.log(`%c alex-editor %c v${version$2} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
5013
5013
  const number = {
5014
5014
  /**
@@ -44661,7 +44661,7 @@ const Editify = withInstall(editify);
44661
44661
  const install = (app) => {
44662
44662
  app.component(Editify.name, Editify);
44663
44663
  };
44664
- const version = "0.2.19";
44664
+ const version = "0.2.20";
44665
44665
  console.log(`%c vue-editify %c v${version} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
44666
44666
  export {
44667
44667
  AlexElement,