devextreme-quill
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -90,13 +90,14 @@ import cloneDeep from 'lodash.clonedeep'; | ||
key = isKeySupported ? key : which; | ||
let normalizedKey = isKeySupported ? key : which; | ||
if (key) { | ||
if (normalizedKey) { | ||
if (isKeySupported) { | ||
key = KEY_NAMES[key.toLowerCase()] || key; | ||
normalizedKey = KEY_NAMES[normalizedKey.toLowerCase()] || normalizedKey; | ||
} else { | ||
key = KEY_CODES[key] || String.fromCharCode(key); | ||
normalizedKey = | ||
KEY_CODES[normalizedKey] || String.fromCharCode(normalizedKey); | ||
} | ||
} | ||
return key; | ||
return normalizedKey; | ||
} | ||
@@ -633,6 +634,6 @@ | ||
}, | ||
'embed left': makeEmbedArrowHandler('ArrowLeft', false), | ||
'embed left shift': makeEmbedArrowHandler('ArrowLeft', true), | ||
'embed right': makeEmbedArrowHandler('ArrowRight', false), | ||
'embed right shift': makeEmbedArrowHandler('ArrowRight', true), | ||
'embed left': makeEmbedArrowHandler('leftArrow', false), | ||
'embed left shift': makeEmbedArrowHandler('leftArrow', true), | ||
'embed right': makeEmbedArrowHandler('rightArrow', false), | ||
'embed right shift': makeEmbedArrowHandler('rightArrow', true), | ||
'table down': makeTableArrowHandler(false), | ||
@@ -692,3 +693,3 @@ 'table up': makeTableArrowHandler(true), | ||
if (!(leaf instanceof EmbedBlot)) return true; | ||
if (key === 'ArrowLeft') { | ||
if (key === 'leftArrow') { | ||
if (shiftKey) { | ||
@@ -695,0 +696,0 @@ this.quill.setSelection( |
{ | ||
"name": "devextreme-quill", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Core of the DevExtrene HtmlEditor", | ||
@@ -75,2 +75,3 @@ "author": "Developer Express Inc.", | ||
"terser-webpack-plugin": "^1.3.0", | ||
"testcafe": "^1.15.1", | ||
"ts-loader": "^6.2.2", | ||
@@ -162,4 +163,5 @@ "typescript": "^3.8.3", | ||
"test": "npm run test:unit", | ||
"test:all": "npm run test:unit && npm run test:functional", | ||
"test:all": "npm run test:unit && npm run test:testcafe", | ||
"test:functional": "./_develop/scripts/puppeteer.sh", | ||
"test:testcafe": "testcafe chrome test/testcafe", | ||
"test:unit": "npm run build && karma start _develop/karma.config.js", | ||
@@ -166,0 +168,0 @@ "test:coverage": "webpack --env.coverage --config _develop/webpack.config.js && karma start _develop/karma.config.js --reporters coverage", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1652305
40
35706