Fyne API fyne

fyne


import "fyne.io/fyne"

Usage

type Focusable

type Focusable interface {
	FocusGained()
	FocusLost()
	Focused() bool // Deprecated: this is an internal detail, canvas tracks current focused object

	TypedRune(rune)
	TypedKey(*KeyEvent)
}

Focusable describes any CanvasObject that can respond to being focused. It will receive the FocusGained and FocusLost events appropriately. When focused it will also have TypedRune called as text is input and TypedKey called when other keys are pressed.