slate-react 0.97.2-202353071056 → 0.97.2

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/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import React, { createContext, useContext, useRef, useEffect, useLayoutEffect, u
5
5
  import scrollIntoView from 'scroll-into-view-if-needed';
6
6
  import { Transforms, Element as Element$1, Editor, Scrubber, Range, Path, Point, Node, Text as Text$1 } from 'slate';
7
7
  import { ResizeObserver } from '@juggle/resize-observer';
8
- import { isKeyHotkey } from 'is-hotkey';
8
+ import { isHotkey } from 'is-hotkey';
9
9
  import ReactDOM from 'react-dom';
10
10
 
11
11
  function _defineProperty(obj, key, value) {
@@ -2951,9 +2951,9 @@ var create = key => {
2951
2951
  var generic = HOTKEYS[key];
2952
2952
  var apple = APPLE_HOTKEYS[key];
2953
2953
  var windows = WINDOWS_HOTKEYS[key];
2954
- var isGeneric = generic && isKeyHotkey(generic);
2955
- var isApple = apple && isKeyHotkey(apple);
2956
- var isWindows = windows && isKeyHotkey(windows);
2954
+ var isGeneric = generic && isHotkey(generic);
2955
+ var isApple = apple && isHotkey(apple);
2956
+ var isWindows = windows && isHotkey(windows);
2957
2957
  return event => {
2958
2958
  if (isGeneric && isGeneric(event)) return true;
2959
2959
  if (IS_APPLE && isApple && isApple(event)) return true;