system

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenForKeys

func ListenForKeys(ctx context.Context, evtChan chan Hotkey, hotkeys ...Hotkey)

func NewClipboardAccess

func NewClipboardAccess() (*clipboardAccess, error)

func NewKeyPresser

func NewKeyPresser() (*keyPresser, error)

func NewSpeaker

func NewSpeaker() *player

func NewTeeReader

func NewTeeReader(source io.ReadCloser, outPath string) (io.ReadCloser, error)

Types

type Hotkey

type Hotkey struct {
	Key      hotkey.Key
	Modifier []hotkey.Modifier
}

func (*Hotkey) String added in v0.1.1

func (h *Hotkey) String() string

func (*Hotkey) ToKeyPressing added in v0.1.1

func (h *Hotkey) ToKeyPressing() KeyPressing

func (*Hotkey) UnmarshalYAML

func (h *Hotkey) UnmarshalYAML(unmarshal func(interface{}) error) error

type KeyPressing

type KeyPressing struct {
	Ctrl  bool
	Shift bool
	Keys  []int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL