Type EventResult

type EventResult struct {
	Focus   ID
	Handled bool
	Repaint bool
	Blur    bool
	// ContinueTraversal asks the runtime to settle the repaint this result
	// requests and then carry the same key on to normal traversal. A menu closes
	// on Tab this way: the popup is gone before the focus moves through the page.
	// It has no effect on a modifier key or a key release.
	ContinueTraversal bool
	FocusVisible      bool
	ClipboardText     string
}

EventResult reports how an application handled an input event. Repaint asks for one synchronous paint. Focus moves focus to one focusable hit, including a hit the event reveals in that paint; Blur clears focus and takes precedence over Focus. Handled suppresses the runtime's click (what Clicked reads), activation, escape, or window-scroll behavior for that event. ClipboardText, when non-empty, asks the active runtime to copy the text without making application code depend on a platform clipboard.