// packages/block-editor/src/components/rich-text/event-listeners/remove-browser-shortcuts.js
import { isKeyboardEvent } from "@wordpress/keycodes";
var remove_browser_shortcuts_default = () => (node) => {
  function onKeydown(event) {
    if (isKeyboardEvent.primary(event, "z") || isKeyboardEvent.primary(event, "y") || isKeyboardEvent.primaryShift(event, "z")) {
      event.preventDefault();
    }
  }
  node.addEventListener("keydown", onKeydown);
  return () => {
    node.removeEventListener("keydown", onKeydown);
  };
};
export {
  remove_browser_shortcuts_default as default
};
//# sourceMappingURL=remove-browser-shortcuts.js.map
