EG/Cesium-1.132/packages/engine/Source/Core/KeyboardEventModifier.js
2025-08-25 17:48:13 +08:00

33 lines
584 B
JavaScript

/**
* This enumerated type is for representing keyboard modifiers. These are keys
* that are held down in addition to other event types.
*
* @enum {number}
*/
const KeyboardEventModifier = {
/**
* Represents the shift key being held down.
*
* @type {number}
* @constant
*/
SHIFT: 0,
/**
* Represents the control key being held down.
*
* @type {number}
* @constant
*/
CTRL: 1,
/**
* Represents the alt key being held down.
*
* @type {number}
* @constant
*/
ALT: 2,
};
export default Object.freeze(KeyboardEventModifier);