// packages/block-editor/src/components/rich-text/event-listeners/input-events.js
import { privateApis as composePrivateApis } from "@wordpress/compose";
import { unlock } from "../../../lock-unlock.mjs";
var { subscribeDelegatedListener } = unlock(composePrivateApis);
var input_events_default = (props) => (element) => {
  const { inputEvents } = props.current;
  function onInput(event) {
    for (const keyboardShortcut of inputEvents.current) {
      keyboardShortcut(event);
    }
  }
  return subscribeDelegatedListener(element, "input", onInput);
};
export {
  input_events_default as default
};
//# sourceMappingURL=input-events.mjs.map
