Skip to content

The open alternative to Salesforce, designed for AI.

704 B
Raw Blame
import { type SerializedEventData } from '@/types/SerializedEventData';

export const SERIALIZED_EVENT_PROPERTY_KEYS = [
  'altKey',
  'ctrlKey',
  'metaKey',
  'shiftKey',
  'clientX',
  'clientY',
  'x',
  'y',
  'pageX',
  'pageY',
  'screenX',
  'screenY',
  'offsetX',
  'offsetY',
  'movementX',
  'movementY',
  'button',
  'buttons',
  'detail',
  'pointerId',
  'pointerType',
  'pressure',
  'tangentialPressure',
  'tiltX',
  'tiltY',
  'twist',
  'width',
  'height',
  'isPrimary',
  'key',
  'code',
  'which',
  'keyCode',
  'isComposing',
  'repeat',
  'inputType',
  'data',
  'deltaX',
  'deltaY',
  'deltaZ',
  'deltaMode',
] as const satisfies readonly (keyof SerializedEventData)[];