Search Docs
Loading...
Skip to content

Interface: BlurEvent

Dispatched on the engine canvas when the text input has been blurred. Call preventDefault() to disallow this and refocus the engine text input.

Extends#

  • CustomEvent<EventTarget | null>

Methods#

preventDefault()#

preventDefault(): void;

Force focus back to the engine input

Returns#

void

Overrides#

CustomEvent.preventDefault

initCustomEvent()#

initCustomEvent(
type,
bubbles?,
cancelable?,
detail?): void;

The CustomEvent.initCustomEvent() method initializes a CustomEvent object.

Parameters#

ParameterType
typestring
bubbles?boolean
cancelable?boolean
detail?EventTarget

Returns#

void

Deprecated#

MDN Reference

Inherited from#

CustomEvent.initCustomEvent

composedPath()#

composedPath(): EventTarget[];

The composedPath() method of the Event interface returns the event’s path which is an array of the objects on which listeners will be invoked.

MDN Reference

Returns#

EventTarget[]

Inherited from#

CustomEvent.composedPath

initEvent()#

initEvent(
type,
bubbles?,
cancelable?): void;

The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().

Parameters#

ParameterType
typestring
bubbles?boolean
cancelable?boolean

Returns#

void

Deprecated#

MDN Reference

Inherited from#

CustomEvent.initEvent

stopImmediatePropagation()#

stopImmediatePropagation(): void;

The stopImmediatePropagation() method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.

MDN Reference

Returns#

void

Inherited from#

CustomEvent.stopImmediatePropagation

stopPropagation()#

stopPropagation(): void;

The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.

MDN Reference

Returns#

void

Inherited from#

CustomEvent.stopPropagation

Properties#

PropertyModifierTypeDescriptionOverridesInherited from
typereadonly"cesdk-blur"The type read-only property of the Event interface returns a string containing the event’s type. MDN ReferenceCustomEvent.type-
detailreadonlyEventTargetContains the element that has received focus during the blur, or nullCustomEvent.detail-
bubblesreadonlybooleanThe bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. MDN Reference-CustomEvent.bubbles
cancelBubblepublicbooleanThe cancelBubble property of the Event interface is deprecated. Deprecated MDN Reference-CustomEvent.cancelBubble
cancelablereadonlybooleanThe cancelable read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened. MDN Reference-CustomEvent.cancelable
composedreadonlybooleanThe read-only composed property of the or not the event will propagate across the shadow DOM boundary into the standard DOM. MDN Reference-CustomEvent.composed
currentTargetreadonlyEventTargetThe currentTarget read-only property of the Event interface identifies the element to which the event handler has been attached. MDN Reference-CursorEvent.currentTarget
defaultPreventedreadonlybooleanThe defaultPrevented read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event. MDN Reference-CustomEvent.defaultPrevented
eventPhasereadonlynumberThe eventPhase read-only property of the being evaluated. MDN Reference-CustomEvent.eventPhase
isTrustedreadonlybooleanThe isTrusted read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via The only exception is the click event, which initializes the isTrusted property to false in user agents. MDN Reference-CustomEvent.isTrusted
returnValuepublicbooleanThe Event property returnValue indicates whether the default action for this event has been prevented or not. Deprecated MDN Reference-CustomEvent.returnValue
srcElementreadonlyEventTargetThe deprecated Event.srcElement is an alias for the Event.target property. Deprecated MDN Reference-CursorEvent.srcElement
targetreadonlyEventTargetThe read-only target property of the dispatched. MDN Reference-CursorEvent.target
timeStampreadonlynumberThe timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created. MDN Reference-CustomEvent.timeStamp
NONEreadonly0--CustomEvent.NONE
CAPTURING_PHASEreadonly1--CustomEvent.CAPTURING_PHASE
AT_TARGETreadonly2--CustomEvent.AT_TARGET
BUBBLING_PHASEreadonly3--CustomEvent.BUBBLING_PHASE