Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
package driver
AndroidContext
AndroidWindowContext
MacWindowContext
NativeWindow
UnknownContext
WaylandWindowContext
WindowsWindowContext
X11WindowContext
driver/desktop
package desktop
App
Canvas
Cursor
Cursorable
CustomShortcut
Driver
Hoverable
Keyable
Modifier
Mouseable
MouseButton
MouseEvent
StandardCursor
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "desktop.Keyable"
desktop.Keyable
import "fyne.io/fyne/v2/driver/desktop"
Usage
type Keyable
type Keyable interface {
fyne.Focusable
KeyDown(*fyne.KeyEvent)
KeyUp(*fyne.KeyEvent)
}
Keyable describes any focusable canvas object that can accept desktop key events. This is the traditional key down and up event that is not applicable to all devices.