Search Docs
Loading...
Skip to content

Interface: RefocusEvent

Dispatched on the engine canvas right before the engine will refocus its text input after a blur. Call preventDefault() to prevent the refocusing.

Extends#

  • CustomEvent<EventTarget | null>

Methods#

preventDefault()#

preventDefault(): void;

Prevent refocusing the engine input

Returns#

void

Overrides#

CustomEvent.preventDefault

initCustomEvent()#

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

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

Parameters#

Parameter Type
type string
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#

Parameter Type
type string
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#

Property Modifier Type Description Overrides Inherited from
type readonly "cesdk-refocus" The type read-only property of the Event interface returns a string containing the event’s type. MDN Reference CustomEvent.type -
detail readonly EventTarget Contains the element that has received focus during the blur, or null CustomEvent.detail -
bubbles readonly boolean The bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. MDN Reference - CustomEvent.bubbles
cancelBubble public boolean The cancelBubble property of the Event interface is deprecated. Deprecated MDN Reference - CustomEvent.cancelBubble
cancelable readonly boolean The 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
composed readonly boolean The 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
currentTarget readonly EventTarget The currentTarget read-only property of the Event interface identifies the element to which the event handler has been attached. MDN Reference - CursorEvent.currentTarget
defaultPrevented readonly boolean The 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
eventPhase readonly number The eventPhase read-only property of the being evaluated. MDN Reference - CustomEvent.eventPhase
isTrusted readonly boolean The 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
returnValue public boolean The Event property returnValue indicates whether the default action for this event has been prevented or not. Deprecated MDN Reference - CustomEvent.returnValue
srcElement readonly EventTarget The deprecated Event.srcElement is an alias for the Event.target property. Deprecated MDN Reference - CursorEvent.srcElement
target readonly EventTarget The read-only target property of the dispatched. MDN Reference - CursorEvent.target
timeStamp readonly number The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created. MDN Reference - CustomEvent.timeStamp
NONE readonly 0 - - CustomEvent.NONE
CAPTURING_PHASE readonly 1 - - CustomEvent.CAPTURING_PHASE
AT_TARGET readonly 2 - - CustomEvent.AT_TARGET
BUBBLING_PHASE readonly 3 - - CustomEvent.BUBBLING_PHASE