'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
