FocusEvent

open class FocusEvent(val type: EventType<FocusEvent>, init: FocusEventInit = definedExternally) : UIEvent(source)

The FocusEvent interface represents focus-related events, including focus, blur, focusin, and focusout.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<FocusEvent>, init: FocusEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val detail: Int

The UIEvent.detail read-only property, when non-zero, provides the current (or next, depending on the event) click count.

Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val relatedTarget: EventTarget?

The relatedTarget read-only property of the FocusEvent interface is the secondary target, depending on the type of event:

Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<FocusEvent>
Link copied to clipboard
external val view: Window?

The UIEvent.view read-only property returns the WindowProxy object from which the event was generated. In browsers, this is the Window object the event happened in.

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()