function normalizeKeyboardKey(key) {
    return (key ?? "").toLowerCase();
}
export function matchesKeyboardBinding(event, binding) {
    const bindings = Array.isArray(binding) ? binding : [binding];
    return bindings.some((candidate) => {
        return (normalizeKeyboardKey(event.key) === normalizeKeyboardKey(candidate.key) &&
            !!(event.ctrlKey || event.metaKey) === !!candidate.ctrlOrMeta &&
            !!event.shiftKey === !!candidate.shift &&
            !!event.altKey === !!candidate.alt);
    });
}
//# sourceMappingURL=commands.js.map