Interface JQueryKeyEventObject

deprecated

​ Deprecated. Use ``.

Hierarchy

Index

Properties

AT_TARGET

AT_TARGET: number

BUBBLING_PHASE

BUBBLING_PHASE: number

CAPTURING_PHASE

CAPTURING_PHASE: number

NONE

NONE: number

altKey

altKey: boolean

bubbles

bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

cancelBubble

cancelBubble: boolean

cancelable

cancelable: boolean

char

char: string
deprecated

charCode

charCode: number
deprecated

composed

composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

ctrlKey

ctrlKey: boolean

currentTarget

currentTarget: Element

The current DOM element within the event bubbling phase.

see

``

data

data: any

An optional object of data passed to an event method when the current executing handler is bound.

see

``

defaultPrevented

defaultPrevented: boolean

delegateTarget

delegateTarget: Element

The element where the currently-called jQuery event handler was attached.

see

``

eventPhase

eventPhase: number

isTrusted

isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

key

key: string

keyCode

keyCode: number
deprecated

metaKey

metaKey: boolean

namespace

namespace: string

The namespace specified when the event was triggered.

see

``

originalEvent

originalEvent: Event

The browser's original Event object.

see

``

pageX

pageX: number

The mouse position relative to the left edge of the document.

see

``

pageY

pageY: number

The mouse position relative to the top edge of the document.

see

``

relatedTarget

relatedTarget: Element

The other DOM element involved in the event, if any.

see

``

result

result: any

The last value returned by an event handler that was triggered by this event, unless the value was undefined.

see

``

returnValue

returnValue: boolean

shiftKey

shiftKey: boolean

srcElement

srcElement: EventTarget | null
deprecated

target

target: Element

The DOM element that initiated the event.

see

``

timeStamp

timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

type

type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

which

which: number

For key or mouse events, this property indicates the specific key or button that was pressed.

see

``

Methods

composedPath

  • composedPath(): EventTarget[]
  • Returns EventTarget[]

initEvent

  • initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void
  • Parameters

    • type: string
    • Optional bubbles: boolean
    • Optional cancelable: boolean

    Returns void

isDefaultPrevented

  • isDefaultPrevented(): boolean

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean

isPropagationStopped

  • isPropagationStopped(): boolean

preventDefault

  • preventDefault(): any
  • If this method is called, the default action of the event will not be triggered.

    see

    ``

    Returns any

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.

    see

    ``

    Returns void

stopPropagation

  • stopPropagation(): void
  • Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

    see

    ``

    Returns void