UNPKG

@gui-agent/operator-browser

Version:
156 lines (155 loc) 3.47 kB
/** * Copyright (c) 2025 Bytedance, Inc. and its affiliates. * SPDX-License-Identifier: Apache-2.0 */ "use strict"; var __webpack_require__ = {}; (()=>{ __webpack_require__.n = (module)=>{ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module; __webpack_require__.d(getter, { a: getter }); return getter; }; })(); (()=>{ __webpack_require__.d = (exports1, definition)=>{ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { enumerable: true, get: definition[key] }); }; })(); (()=>{ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop); })(); (()=>{ __webpack_require__.r = (exports1)=>{ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { value: 'Module' }); Object.defineProperty(exports1, '__esModule', { value: true }); }; })(); var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { KEY_MAPPINGS: ()=>KEY_MAPPINGS }); const external_os_namespaceObject = require("os"); var external_os_default = /*#__PURE__*/ __webpack_require__.n(external_os_namespaceObject); const isMac = 'darwin' === external_os_default().platform(); const ControlOrMeta = isMac ? 'Meta' : 'Control'; const KEY_MAPPINGS = { enter: 'Enter', tab: 'Tab', escape: 'Escape', up: 'ArrowUp', down: 'ArrowDown', left: 'ArrowLeft', right: 'ArrowRight', arrowup: 'ArrowUp', arrowdown: 'ArrowDown', arrowleft: 'ArrowLeft', arrowright: 'ArrowRight', backspace: 'Backspace', delete: 'Delete', f1: 'F1', f2: 'F2', f3: 'F3', f4: 'F4', f5: 'F5', f6: 'F6', f7: 'F7', f8: 'F8', f9: 'F9', f10: 'F10', f11: 'F11', f12: 'F12', shift: 'Shift', alt: 'Alt', control: ControlOrMeta, ctrl: ControlOrMeta, cmd: ControlOrMeta, command: ControlOrMeta, a: 'KeyA', b: 'KeyB', c: 'KeyC', d: 'KeyD', e: 'KeyE', f: 'KeyF', g: 'KeyG', h: 'KeyH', i: 'KeyI', j: 'KeyJ', k: 'KeyK', l: 'KeyL', m: 'KeyM', n: 'KeyN', o: 'KeyO', p: 'KeyP', q: 'KeyQ', r: 'KeyR', s: 'KeyS', t: 'KeyT', u: 'KeyU', v: 'KeyV', w: 'KeyW', x: 'KeyX', y: 'KeyY', z: 'KeyZ', 0: '0', 1: '1', 2: '2', 3: '3', 4: '4', 5: '5', 6: '6', 7: '7', 8: '8', 9: '9', '.': '.', ',': ',', '!': '!', '?': '?', ';': ';', ':': ':', "'": "'", '"': '"', '(': '(', ')': ')', '[': '[', ']': ']', '{': '{', '}': '}', '<': '<', '>': '>', '-': '-', _: '_', '+': '+', '=': '=', '/': '/', '\\': '\\', '@': '@', '#': '#', $: '$', '%': '%', '^': '^', '&': '&', '*': '*', '|': '|', '~': '~', '`': '`', ' ': ' ' }; exports.KEY_MAPPINGS = __webpack_exports__.KEY_MAPPINGS; for(var __webpack_i__ in __webpack_exports__)if (-1 === [ "KEY_MAPPINGS" ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; Object.defineProperty(exports, '__esModule', { value: true }); //# sourceMappingURL=key-map.js.map