UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

18 lines 558 B
import { StickyEvent } from './StickyEvent.js'; /** * A sticky event that is fired when a {@link Widget} loses a specific * {@link FocusType | focus}. Not capturable by user listeners or the widget * receiving the event. * * Always check the focus type to avoid weird behaviour. */ export class BlurEvent extends StickyEvent { constructor(focusType) { super(); this.type = BlurEvent.type; this.userCapturable = false; this.focusType = focusType; } } BlurEvent.type = 'blur'; //# sourceMappingURL=BlurEvent.js.map