On this page
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.KeyNameKey returns the key name of this shortcut.
func (*CustomShortcut) Mod
func (cs *CustomShortcut) Mod() fyne.KeyModifierMod returns the modifier of this shortcut.
func (*CustomShortcut) ShortcutName
func (cs *CustomShortcut) ShortcutName() stringShortcutName returns the shortcut name associated to the event.