'use strict';

require('../../../../utils/index.cjs');
var KeyCode = require('../../../../utils/KeyCode.cjs');

function isValidateOpenKey(currentKeyCode) {
  return ![
    // System function button
    KeyCode.KeyCode.ESC,
    KeyCode.KeyCode.SHIFT,
    KeyCode.KeyCode.BACKSPACE,
    KeyCode.KeyCode.TAB,
    KeyCode.KeyCode.WIN_KEY,
    KeyCode.KeyCode.ALT,
    KeyCode.KeyCode.META,
    KeyCode.KeyCode.WIN_KEY_RIGHT,
    KeyCode.KeyCode.CTRL,
    KeyCode.KeyCode.SEMICOLON,
    KeyCode.KeyCode.EQUALS,
    KeyCode.KeyCode.CAPS_LOCK,
    KeyCode.KeyCode.CONTEXT_MENU,
    // F1-F12
    KeyCode.KeyCode.F1,
    KeyCode.KeyCode.F2,
    KeyCode.KeyCode.F3,
    KeyCode.KeyCode.F4,
    KeyCode.KeyCode.F5,
    KeyCode.KeyCode.F6,
    KeyCode.KeyCode.F7,
    KeyCode.KeyCode.F8,
    KeyCode.KeyCode.F9,
    KeyCode.KeyCode.F10,
    KeyCode.KeyCode.F11,
    KeyCode.KeyCode.F12
  ].includes(currentKeyCode);
}

exports.isValidateOpenKey = isValidateOpenKey;
//# sourceMappingURL=keyUtil.cjs.map
