const isModifierKey = (key) => [
  "Alt",
  "AltGraph",
  "CapsLock",
  "Ctrl",
  "Fn",
  "FnLock",
  "Hyper",
  "Meta",
  "NumLock",
  "ScrollLock",
  "Shift",
  "Super",
  "Symbol",
  "SymbolLock"
].includes(key);
const isWhitespaceKeys = (key) => ["Enter", "Tab", "Space"].includes(key);
const isNavigationKey = (key) => [
  "ArrowDown",
  "ArrowLeft",
  "ArrowRight",
  "ArrowUp",
  "Arrow",
  "End",
  "Home",
  "PageDown",
  "PageUp",
  "Escape"
].includes(key);
const isFunctionKey = (key) => [
  "F1",
  "F2",
  "F3",
  "F4",
  "F5",
  "F6",
  "F7",
  "F8",
  "F9",
  "F10",
  "F11",
  "F12",
  "F13",
  "F14",
  "F15",
  "F16",
  "F17",
  "F18",
  "F19",
  "F20",
  "Soft1",
  "Soft2",
  "Soft3",
  "Soft4"
].includes(key);
const isNumber = (key) => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"].includes(key);
const isNumericKeypadKey = (key) => isNumber(key) || [
  "Decimal",
  "Key11",
  "Key12",
  "Multiply",
  "Add",
  "Clear",
  "Divide",
  "Subtract",
  "Separator"
].includes(key);
const isLatinKey = (key) => [
  "A",
  "B",
  "C",
  "D",
  "E",
  "F",
  "G",
  "H",
  "I",
  "J",
  "K",
  "L",
  "M",
  "N",
  "O",
  "P",
  "Q",
  "R",
  "S",
  "T",
  "U",
  "V",
  "W",
  "X",
  "Y",
  "Z"
].includes(key);
const isNonAlphaNumericKey = (key) => [
  "/",
  ".",
  ",",
  "]",
  "[",
  ";",
  "<",
  ">",
  "?",
  "!",
  "@",
  "#",
  "$",
  "%",
  "^",
  "&",
  "*",
  "(",
  ")",
  "-",
  "=",
  "_",
  "+",
  "{",
  "}",
  "|",
  ",",
  ":",
  '"',
  "~",
  "`"
].includes(key);
const isEditingKey = (key) => ["Backspace", "Delete"].includes(key);
const isTriggerKey = (key) => isNonAlphaNumericKey(key) || isNumber(key) || isNumericKeypadKey(key) || isLatinKey(key) || isFunctionKey(key) || isNavigationKey(key) || isWhitespaceKeys(key) || isEditingKey(key);
export {
  isModifierKey,
  isTriggerKey
};
//# sourceMappingURL=key-types.js.map
