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.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