Fyne API "desktop.CustomShortcut"
desktop.CustomShortcut
import "fyne.io/fyne/v2/driver/desktop"
Usage
type CustomShortcut
type CustomShortcut struct {
fyne.KeyName
Modifier fyne.KeyModifier
}
CustomShortcut describes a shortcut desktop event.
func (*CustomShortcut) Key
func (cs *CustomShortcut) Key() fyne.KeyName
Key returns the key name of this shortcut. @implements KeyboardShortcut
func (*CustomShortcut) Mod
func (cs *CustomShortcut) Mod() fyne.KeyModifier
Mod returns the modifier of this shortcut. @implements KeyboardShortcut
func (*CustomShortcut) ShortcutName
func (cs *CustomShortcut) ShortcutName() string
ShortcutName returns the shortcut name associated to the event