redirect_to | layout | tags | title | |
---|---|---|---|---|
page |
|
Fyne API "fyne.ShortcutHandler" |
import "fyne.io/fyne/v2"
type ShortcutHandler struct {
}
ShortcutHandler is a default implementation of the shortcut handler for the canvasObject
func (sh *ShortcutHandler) AddShortcut(shortcut Shortcut, handler func(shortcut Shortcut))
AddShortcut register an handler to be executed when the shortcut action is triggered
func (sh *ShortcutHandler) RemoveShortcut(shortcut Shortcut)
RemoveShortcut removes a registered shortcut
func (sh *ShortcutHandler) TypedShortcut(shortcut Shortcut)
TypedShortcut handle the registered shortcut