import { Arr, Fun } from '@ephox/katamari';
const inSet = (keys) => (event) => {
    const raw = event.raw;
    return Arr.contains(keys, raw.which);
};
const and = (preds) => (event) => Arr.forall(preds, (pred) => pred(event));
const is = (key) => (event) => {
    const raw = event.raw;
    return raw.which === key;
};
const isShift = (event) => {
    const raw = event.raw;
    return raw.shiftKey === true;
};
const isControl = (event) => {
    const raw = event.raw;
    return raw.ctrlKey === true;
};
const isNotControl = Fun.not(isControl);
const isNotShift = Fun.not(isShift);
export { inSet, and, is, isShift, isNotShift, isControl, isNotControl };
//# sourceMappingURL=KeyMatch.js.map