Search
    Preparing search index...

    currentTarget - a reference to the element on which the event listener is registered.

    target - a reference to the element from which the event was originally dispatched. This might be a child element to the element on which the event listener is registered. If you thought this should be EventTarget & T, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682

    interface TouchEvent<T = Element> {
        altKey: boolean;
        bubbles: boolean;
        cancelable: boolean;
        changedTouches: TouchList;
        ctrlKey: boolean;
        currentTarget: EventTarget & T;
        defaultPrevented: boolean;
        detail: number;
        eventPhase: number;
        isTrusted: boolean;
        metaKey: boolean;
        nativeEvent: TouchEvent;
        shiftKey: boolean;
        target: EventTarget;
        targetTouches: TouchList;
        timeStamp: number;
        touches: TouchList;
        type: string;
        view: AbstractView;
        getModifierState(key: string): boolean;
        isDefaultPrevented(): boolean;
        isPropagationStopped(): boolean;
        persist(): void;
        preventDefault(): void;
        stopPropagation(): void;
    }

    Type Parameters

    • T = Element

    Hierarchy (View Summary)

    Index

    Properties

    altKey: boolean
    bubbles: boolean
    cancelable: boolean
    changedTouches: TouchList
    ctrlKey: boolean
    currentTarget: EventTarget & T
    defaultPrevented: boolean
    detail: number
    eventPhase: number
    isTrusted: boolean
    metaKey: boolean
    nativeEvent: TouchEvent
    shiftKey: boolean
    target: EventTarget
    targetTouches: TouchList
    timeStamp: number
    touches: TouchList
    type: string

    Methods

    • See DOM Level 3 Events spec. for a list of valid (case-sensitive) arguments to this method.

      Parameters

      • key: string

      Returns boolean

    • Returns boolean

    • Returns boolean

    • Returns void

    • Returns void

    • Returns void