/**
 * Checks if the given keyboard event is an action key = Enter or Space.
 *
 * @param event - The keyboard event to check.
 * @returns `true` if the event is an action key, `false` otherwise.
 *
 * @internal
 */
export const isActionKey = (event) => {
    return event.key === "Enter" || event.key === " ";
};
/**
 * Checks if the given keyboard event is triggered by a Space key.
 *
 * @param event - The keyboard event to check.
 * @returns `true` if the event has been triggered by a Space key, `false` otherwise.
 *
 * @internal
 */
export const isSpaceKey = (event) => {
    return event.key === " ";
};
/**
 * Checks if the given keyboard event is triggered by an Enter key.
 *
 * @param event - The keyboard event to check.
 * @returns `true` if the event has been triggered by an Enter key, `false` otherwise.
 *
 * @internal
 */
export const isEnterKey = (event) => {
    return event.key === "Enter";
};
/**
 * Checks if the given keyboard event is triggered by one of the Arrow keys.
 *
 * @param event - The keyboard event to check.
 * @returns `true` if the event has been triggered by one of the Arrow keys, `false` otherwise.
 *
 * @internal
 */
export const isArrowKey = (event) => {
    return event.key.startsWith("Arrow");
};
/**
 * Checks if the given keyboard event is triggered by an Escape key.
 *
 * @param event - The keyboard event to check.
 * @returns `true` if the event has been triggered by an Escape key, `false` otherwise.
 *
 * @internal
 */
export const isEscapeKey = (event) => {
    return event.key === "Escape";
};
/**
 * Checks if the given keyboard event is triggered by a Copy key.
 *
 * @param event - The keyboard event to check.
 * @returns `true` if the event has been triggered by ctrl+c or cmd+c, `false` otherwise.
 *
 * @internal
 */
export const isCopyKey = (event) => {
    return event.key === "c" && (event.ctrlKey || event.metaKey);
};
//# sourceMappingURL=events.js.map