Skip to content

kLabz/event-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haxe Event Types

Haxe abstract enums for JavaScript event types, with documentation from MDN.

Usage

Install (haxelib)

haxelib install event-types

Example usage

import eventtypes.MouseEventType;

// ...

// Avoid using magic strings for event types:
element.addEventListener(MouseEventType.Click, myClickHandler);

Alternatively, you can import all top-level event-type definitions with:

import EventTypes;

// ...

// Avoid using magic strings for event types:
element.addEventListener(MouseEventType.Click, myClickHandler);
element.addEventListener(KeyboardEventType.KeyDown, myKeyDownHandler);

Event types included

  • AnimationEnd = "animationend"
  • AnimationIteration = "animationiteration"
  • AnimationStart = "animationstart"
  • ChargingChange = "chargingchange"
  • ChargingTimeChange = "chargingtimechange"
  • DischargingTimeChange = "dischargingtimechange"
  • LevelChange = "levelchange"

CallEventType (String)

  • Alerting = "alerting"
  • Busy = "busy"
  • CFStateChange = "cfstatechange"
  • CallsChanged = "callschanged"
  • Connected = "connected"
  • Connecting = "connecting"
  • Dialing = "dialing"
  • Disconnected = "disconnected"
  • Disconnecting = "disconnecting"
  • Error = "error"
  • Held = "held"
  • Incoming = "incoming"
  • Resuming = "resuming"
  • StateChange = "statechange"
  • VoiceChange = "voicechange"
  • Copy = "copy"
  • Cut = "cut"
  • Paste = "paste"
  • DOMAttrModified = "DOMAttrModified"
  • DOMAttributeNameChanged = "DOMAttributeNameChanged"
  • DOMCharacterDataModified = "DOMCharacterDataModified"
  • DOMContentLoaded = "DOMContentLoaded"
  • DOMElementNameChanged = "DOMElementNameChanged"
  • DOMNodeInserted = "DOMNodeInserted"
  • DOMNodeInsertedIntoDocument = "DOMNodeInsertedIntoDocument"
  • DOMNodeRemoved = "DOMNodeRemoved"
  • DOMNodeRemovedFromDocument = "DOMNodeRemovedFromDocument"
  • DOMSubtreeModified = "DOMSubtreeModified"
  • Abort = "abort"
  • Blocked = "blocked"
  • Complete = "complete"
  • Error = "error"
  • Success = "success"
  • UpgradeNeeded = "upgradeneeded"
  • VersionChange = "versionchange"
  • DOMLinkAdded = "DOMLinkAdded"
  • DOMLinkRemoved = "DOMLinkRemoved"
  • DOMMetaAdded = "DOMMetaAdded"
  • DOMMetaRemoved = "DOMMetaRemoved"
  • DOMModalDialogClosed = "DOMModalDialogClosed"
  • DOMWillOpenModalDialog = "DOMWillOpenModalDialog"

DragEventType (String)

  • Drag = "drag"
  • DragEnd = "dragend"
  • DragEnter = "dragenter"
  • DragLeave = "dragleave"
  • DragOver = "dragover"
  • DragStart = "dragstart"
  • Drop = "drop"
  • Blur = "blur"
  • Focus = "focus"
  • FocusIn = "focusin"
  • FocusOut = "focusout"

FormEventType (String)

  • Reset = "reset"
  • Submit = "submit"
  • Connected = "gamepadconnected"
  • Disconnected = "gamepaddisconnected"
  • Change = "change"
  • Input = "input"
  • KeyDown = "keydown"
  • KeyPress = "keypress"
  • KeyUp = "keyup"
  • AudioProcess = "audioprocess"
  • CanPlay = "canplay"
  • CanPlayThrough = "canplaythrough"
  • Complete = "complete"
  • DurationChange = "durationchange"
  • Emptied = "emptied"
  • Ended = "ended"
  • LoadedData = "loadeddata"
  • LoadedMetadata = "loadedmetadata"
  • Pause = "pause"
  • Play = "play"
  • Playing = "playing"
  • RateChange = "ratechange"
  • Seeked = "seeked"
  • Seeking = "seeking"
  • Stalled = "stalled"
  • Suspend = "suspend"
  • TimeUpdate = "timeupdate"
  • VolumeChange = "volumechange"
  • Waiting = "waiting"

MenuEventType (String)

  • DOMMenuItemActive = "DOMMenuItemActive"
  • DOMMenuItemInactive = "DOMMenuItemInactive"
  • AuxClick = "auxclick"
  • Click = "click"
  • ContextMenu = "contextmenu"
  • DblClick = "dblclick"
  • MouseDown = "mousedown"
  • MouseEnter = "mouseenter"
  • MouseLeave = "mouseleave"
  • MouseMove = "mousemove"
  • MouseOut = "mouseout"
  • MouseOver = "mouseover"
  • MouseUp = "mouseup"
  • PointerLockChange = "pointerlockchange"
  • PointerLockError = "pointerlockerror"
  • Select = "select"
  • Show = "show"
  • Wheel = "wheel"
  • Offline = "offline"
  • Online = "online"
  • AlertActive = "AlertActive"
  • AlertClose = "AlertClose"
  • GotPointerCapture = "gotpointercapture"
  • LostPointerCapture = "lostpointercapture"
  • PointerCancel = "pointercancel"
  • PointerDown = "pointerdown"
  • PointerEnter = "pointerenter"
  • PointerLeave = "pointerleave"
  • PointerMove = "pointermove"
  • PointerOut = "pointerout"
  • PointerOver = "pointerover"
  • PointerUp = "pointerup"
  • DOMPopupBlocked = "DOMPopupBlocked"
  • PopupHidden = "popuphidden"
  • PopupHiding = "popuphiding"
  • PopupShowing = "popupshowing"
  • PopupShown = "popupshown"
  • AfterPrint = "afterprint"
  • BeforePrint = "beforeprint"
  • Abort = "abort"
  • Error = "error"
  • Load = "load"
  • LoadEnd = "loadend"
  • LoadStart = "loadstart"
  • Progress = "progress"
  • TimeOut = "timeout"
  • Abort = "abort"
  • BeforeUnload = "beforeunload"
  • Cached = "cached"
  • Error = "error"
  • Load = "load"
  • Unload = "unload"

SVGEventType (String)

  • Abort = "SVGAbort"
  • Error = "SVGError"
  • Load = "SVGLoad"
  • Resize = "SVGResize"
  • Scroll = "SVGScroll"
  • Unload = "SVGUnload"
  • Zoom = "SVGZoom"
  • AfterScriptExecute = "afterscriptexecute"
  • BeforeScriptExecute = "beforescriptexecute"
  • CompassNeedsCalibration = "compassneedscalibration"
  • DeviceLight = "devicelight"
  • DeviceMotion = "devicemotion"
  • DeviceOrientation = "deviceorientation"
  • DeviceProximity = "deviceproximity"
  • MozOrientation = "MozOrientation"
  • OrientationChange = "orientationchange"
  • UserProximity = "userproximity"
  • PageHide = "pagehide"
  • PageShow = "pageshow"
  • PopState = "popstate"
  • CardStateChange = "cardstatechange"
  • ICCCardLockError = "icccardlockerror"
  • ICCInfoChange = "iccinfochange"
  • SmartcardInsert = "smartcard-insert"
  • SmartcardRemove = "smartcard-remove"
  • StkCommand = "stkcommand"
  • StkSessionEnd = "stksessionend"
  • Change = "change"
  • Storage = "storage"

TabEventType (String)

  • SSTabClosing = "SSTabClosing"
  • SSTabRestored = "SSTabRestored"
  • SSTabRestoring = "SSTabRestoring"
  • TabClose = "TabClose"
  • TabHide = "TabHide"
  • TabOpen = "TabOpen"
  • TabPinned = "TabPinned"
  • TabSelect = "TabSelect"
  • TabShow = "TabShow"
  • TabUnpinned = "TabUnpinned"
  • VisibilityChange = "visibilitychange"
  • CompositionEnd = "compositionend"
  • CompositionStart = "compositionstart"
  • CompositionUpdate = "compositionupdate"

TimeEventType (String)

  • Begin = "beginEvent"
  • End = "endEvent"
  • Repeat = "repeatEvent"
  • TouchCancel = "touchcancel"
  • TouchEnd = "touchend"
  • TouchMove = "touchmove"
  • TouchStart = "touchstart"
  • TransitionCancel = "transitioncancel"
  • TransitionEnd = "transitionend"
  • TransitionRun = "transitionrun"
  • TransitionStart = "transitionstart"
  • Checking = "checking"
  • Downloading = "downloading"
  • Error = "error"
  • NoUpdate = "noupdate"
  • Obsolete = "obsolete"
  • UpdateReady = "updateready"
  • Broadcast = "broadcast"
  • CheckboxStateChange = "CheckboxStateChange"
  • HashChange = "hashchange"
  • Input = "input"
  • RadioStateChange = "RadioStateChange"
  • ReadyStateChange = "readystatechange"
  • ValueChange = "ValueChange"

ViewEventType (String)

  • FullScreenChange = "fullscreenchange"
  • FullScreenError = "fullscreenerror"
  • Resize = "resize"
  • Scroll = "scroll"
  • VRDisplayActivate = "vrdisplayactivate"
  • VRDisplayBlur = "vrdisplayblur"
  • VRDisplayConnect = "vrdisplayconnect"
  • VRDisplayDeactivate = "vrdisplaydeactivate"
  • VRDisplayDisconnect = "vrdisplaydisconnect"
  • VRDisplayFocus = "vrdisplayfocus"
  • VRDisplayPresentChange = "vrdisplaypresentchange"
  • Close = "close"
  • Error = "error"
  • Message = "message"
  • Open = "open"
  • Close = "close"
  • DOMTitleChanged = "DOMTitleChanged"
  • DOMWindowClose = "DOMWindowClose"
  • DOMWindowCreated = "DOMWindowCreated"
  • SSWindowClosing = "SSWindowClosing"
  • SSWindowStateBusy = "SSWindowStateBusy"
  • SSWindowStateReady = "SSWindowStateReady"

Cordova

  • DeviceReady = "deviceready"
  • Pause = "pause"
  • Resume = "resume"
  • BackButton = "backbutton"
  • MenuButton = "menubutton"
  • SearchButton = "searchbutton"
  • StartCallButton = "startcallbutton"
  • EndCallButton = "endcallbutton"
  • VolumeDownButton = "volumedownbutton"
  • VolumeUpButton = "volumeupbutton"
  • Activated = "activated"

Electron

AppEventType (String)

  • AccessibilitySupportChanged = "accessibility-support-changed"
  • Activate = "activate"
  • ActivityWasContinued = "activity-was-continued"
  • BeforeQuit = "before-quit"
  • BrowserWindowBlur = "browser-window-blur"
  • BrowserWindowCreated = "browser-window-created"
  • BrowserWindowFocus = "browser-window-focus"
  • CertificateError = "certificate-error"
  • ContinueActivity = "continue-activity"
  • ContinueActivityError = "continue-activity-error"
  • GpuProcessCrashed = "gpu-process-crashed"
  • Login = "login"
  • NewWindowForTab = "new-window-for-tab"
  • OpenFile = "open-file"
  • OpenUrl = "open-url"
  • Quit = "quit"
  • Ready = "ready"
  • SelectClientCertificate = "select-client-certificate"
  • UpdateActivityState = "update-activity-state"
  • WebContentsCreated = "web-contents-created"
  • WillContinueActivity = "will-continue-activity"
  • WillFinishLaunching = "will-finish-launching"
  • WillQuit = "will-quit"
  • WindowAllClosed = "window-all-closed"
  • CheckingForUpdate = "checking-for-update"
  • Error = "error"
  • UpdateAvailable = "update-available"
  • UpdateDownloaded = "update-downloaded"
  • UpdateNotAvailable = "update-not-available"
  • AppCommand = "app-command"
  • Blur = "blur"
  • Close = "close"
  • Closed = "closed"
  • EnterFullScreen = "enter-full-screen"
  • EnterHtmlFullScreen = "enter-html-full-screen"
  • Focus = "focus"
  • Hide = "hide"
  • LeaveFullScreen = "leave-full-screen"
  • LeaveHtmlFullScreen = "leave-html-full-screen"
  • Maximize = "maximize"
  • Minimize = "minimize"
  • Move = "move"
  • Moved = "moved"
  • NewWindowForTab = "new-window-for-tab"
  • PageTitleUpdated = "page-title-updated"
  • ReadyToShow = "ready-to-show"
  • Resize = "resize"
  • Responsive = "responsive"
  • Restore = "restore"
  • ScrollTouchBegin = "scroll-touch-begin"
  • ScrollTouchEdge = "scroll-touch-edge"
  • ScrollTouchEnd = "scroll-touch-end"
  • SessionEnd = "session-end"
  • SheetBegin = "sheet-begin"
  • SheetEnd = "sheet-end"
  • Show = "show"
  • Swipe = "swipe"
  • Unmaximize = "unmaximize"
  • Unresponsive = "unresponsive"
  • Abort = "abort"
  • Close = "close"
  • Error = "error"
  • Finish = "finish"
  • Login = "login"
  • Redirect = "redirect"
  • Response = "response"
  • Changed = "changed"
  • Detach = "detach"
  • Message = "message"
  • Done = "done"
  • Updated = "updated"
  • TransactionsUpdated = "transactions-updated"
  • Aborted = "aborted"
  • Data = "data"
  • End = "end"
  • Error = "error"

MenuEventType (String)

  • MenuWillClose = "menu-will-close"
  • MenuWillShow = "menu-will-show"
  • Action = "action"
  • Click = "click"
  • Close = "close"
  • Reply = "reply"
  • Show = "show"
  • OnAc = "on-ac"
  • OnBattery = "on-battery"
  • Resume = "resume"
  • Shutdown = "shutdown"
  • Suspend = "suspend"
  • Loaded = "loaded"
  • DisplayAdded = "display-added"
  • DisplayMetricsChanged = "display-metrics-changed"
  • DisplayRemoved = "display-removed"
  • WillDownload = "will-download"
  • AccentColorChanged = "accent-color-changed"
  • ColorChanged = "color-changed"
  • InvertedColorSchemeChanged = "inverted-color-scheme-changed"

TrayEventType (String)

  • BalloonClick = "balloon-click"
  • BalloonClosed = "balloon-closed"
  • BalloonShow = "balloon-show"
  • Click = "click"
  • DoubleClick = "double-click"
  • DragEnd = "drag-end"
  • DragEnter = "drag-enter"
  • DragLeave = "drag-leave"
  • Drop = "drop"
  • DropFiles = "drop-files"
  • DropText = "drop-text"
  • MouseEnter = "mouse-enter"
  • MouseLeave = "mouse-leave"
  • MouseMove = "mouse-move"
  • RightClick = "right-click"
  • BeforeInputEvent = "before-input-event"
  • CertificateError = "certificate-error"
  • ConsoleMessage = "console-message"
  • ContextMenu = "context-menu"
  • Crashed = "crashed"
  • CursorChanged = "cursor-changed"
  • Destroyed = "destroyed"
  • DevtoolsClosed = "devtools-closed"
  • DevtoolsFocused = "devtools-focused"
  • DevtoolsOpened = "devtools-opened"
  • DevtoolsReloadPage = "devtools-reload-page"
  • DidAttachWebview = "did-attach-webview"
  • DidChangeThemeColor = "did-change-theme-color"
  • DidFailLoad = "did-fail-load"
  • DidFinishLoad = "did-finish-load"
  • DidFrameFinishLoad = "did-frame-finish-load"
  • DidGetRedirectRequest = "did-get-redirect-request"
  • DidGetResponseDetails = "did-get-response-details"
  • DidNavigate = "did-navigate"
  • DidNavigateInPage = "did-navigate-in-page"
  • DidStartLoading = "did-start-loading"
  • DidStopLoading = "did-stop-loading"
  • DomReady = "dom-ready"
  • FoundInPage = "found-in-page"
  • Login = "login"
  • MediaPaused = "media-paused"
  • MediaStartedPlaying = "media-started-playing"
  • NewWindow = "new-window"
  • PageFaviconUpdated = "page-favicon-updated"
  • Paint = "paint"
  • PluginCrashed = "plugin-crashed"
  • SelectBluetoothDevice = "select-bluetooth-device"
  • SelectClientCertificate = "select-client-certificate"
  • UpdateTargetUrl = "update-target-url"
  • WillAttachWebview = "will-attach-webview"
  • WillNavigate = "will-navigate"
  • WillPreventUnload = "will-prevent-unload"

About

Haxe event types enums for javascript

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages