@bbl-digital/snorre 4.1.3 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js CHANGED
@@ -35592,6 +35592,12 @@ to {top: 100vh;}
35592
35592
  }, (range, context) => {
35593
35593
  return handleBackspaceWithIndentetList(range, context, quillInstance);
35594
35594
  });
35595
+ quillInstance.keyboard.addBinding({
35596
+ key: 'Escape'
35597
+ }, () => {
35598
+ // Remove focus from editor
35599
+ quillInstance.blur();
35600
+ });
35595
35601
  // Move the last binding in the list, to the top. Ensure that the custom binding is called first.
35596
35602
  quillInstance.keyboard.bindings['Backspace'].unshift(quillInstance.keyboard.bindings['Backspace'].pop());
35597
35603
  if (initialValue !== undefined) {
@@ -189,6 +189,12 @@ const QuillEditor = ({
189
189
  }, (range, context) => {
190
190
  return handleBackspaceWithIndentetList(range, context, quillInstance);
191
191
  });
192
+ quillInstance.keyboard.addBinding({
193
+ key: 'Escape'
194
+ }, () => {
195
+ // Remove focus from editor
196
+ quillInstance.blur();
197
+ });
192
198
  // Move the last binding in the list, to the top. Ensure that the custom binding is called first.
193
199
  quillInstance.keyboard.bindings['Backspace'].unshift(quillInstance.keyboard.bindings['Backspace'].pop());
194
200
  if (initialValue !== undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoQ3C,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AA+D3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwQ3C,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -189,6 +189,12 @@ const QuillEditor = ({
189
189
  }, (range, context) => {
190
190
  return handleBackspaceWithIndentetList(range, context, quillInstance);
191
191
  });
192
+ quillInstance.keyboard.addBinding({
193
+ key: 'Escape'
194
+ }, () => {
195
+ // Remove focus from editor
196
+ quillInstance.blur();
197
+ });
192
198
  // Move the last binding in the list, to the top. Ensure that the custom binding is called first.
193
199
  quillInstance.keyboard.bindings['Backspace'].unshift(quillInstance.keyboard.bindings['Backspace'].pop());
194
200
  if (initialValue !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",