hotkeys

package
v0.0.0-...-49d6d54 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySpace hk.Key = 0x0020
	Key1     hk.Key = 0x0030
	Key2     hk.Key = 0x0031
	Key3     hk.Key = 0x0032
	Key4     hk.Key = 0x0033
	Key5     hk.Key = 0x0034
	Key6     hk.Key = 0x0035
	Key7     hk.Key = 0x0036
	Key8     hk.Key = 0x0037
	Key9     hk.Key = 0x0038
	Key0     hk.Key = 0x0039
	KeyA     hk.Key = 0x0061
	KeyB     hk.Key = 0x0062
	KeyC     hk.Key = 0x0063
	KeyD     hk.Key = 0x0064
	KeyE     hk.Key = 0x0065
	KeyF     hk.Key = 0x0066
	KeyG     hk.Key = 0x0067
	KeyH     hk.Key = 0x0068
	KeyI     hk.Key = 0x0069
	KeyJ     hk.Key = 0x006a
	KeyK     hk.Key = 0x006b
	KeyL     hk.Key = 0x006c
	KeyM     hk.Key = 0x006d
	KeyN     hk.Key = 0x006e
	KeyO     hk.Key = 0x006f
	KeyP     hk.Key = 0x0070
	KeyQ     hk.Key = 0x0071
	KeyR     hk.Key = 0x0072
	KeyS     hk.Key = 0x0073
	KeyT     hk.Key = 0x0074
	KeyU     hk.Key = 0x0075
	KeyV     hk.Key = 0x0076
	KeyW     hk.Key = 0x0077
	KeyX     hk.Key = 0x0078
	KeyY     hk.Key = 0x0079
	KeyZ     hk.Key = 0x007a

	KeyReturn hk.Key = 0xff0d
	KeyEscape hk.Key = 0xff1b
	KeyTab    hk.Key = 0xff1b

	KeyPrtScrn    hk.Key = 0xfd1d
	KeyInsert     hk.Key = 0xff63
	KeyDelete     hk.Key = 0xffff
	KeyScrLock    hk.Key = 0xff14
	KeyHome       hk.Key = 0xff50
	KeyEnd        hk.Key = 0xff57
	KeyPauseBreak hk.Key = 0xff13
	KeyPageUp     hk.Key = 0xff55
	KeyPageDown   hk.Key = 0xff56

	KeyLeft  hk.Key = 0xff51
	KeyRight hk.Key = 0xff53
	KeyUp    hk.Key = 0xff52
	KeyDown  hk.Key = 0xff54

	KeyF1  hk.Key = 0xffbe
	KeyF2  hk.Key = 0xffbf
	KeyF3  hk.Key = 0xffc0
	KeyF4  hk.Key = 0xffc1
	KeyF5  hk.Key = 0xffc2
	KeyF6  hk.Key = 0xffc3
	KeyF7  hk.Key = 0xffc4
	KeyF8  hk.Key = 0xffc5
	KeyF9  hk.Key = 0xffc6
	KeyF10 hk.Key = 0xffc7
	KeyF11 hk.Key = 0xffc8
	KeyF12 hk.Key = 0xffc9
	KeyF13 hk.Key = 0xffca
	KeyF14 hk.Key = 0xffcb
	KeyF15 hk.Key = 0xffcc
	KeyF16 hk.Key = 0xffcd
	KeyF17 hk.Key = 0xffce
	KeyF18 hk.Key = 0xffcf
	KeyF19 hk.Key = 0xffd0
	KeyF20 hk.Key = 0xffd1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHotKey

type AppHotKey struct {
	// contains filtered or unexported fields
}

func NewHotKey

func NewHotKey(
	key hotkey.Key,
	mods []hotkey.Modifier,
	onKeyDown *func(),
	onKeyUp *func(),
) *AppHotKey

type HotKeySet

type HotKeySet struct {
	// contains filtered or unexported fields
}

func NewHotKeySet

func NewHotKeySet(hotkeys ...*AppHotKey) *HotKeySet

func (*HotKeySet) StartListeningAll

func (set *HotKeySet) StartListeningAll() error

func (*HotKeySet) StopListeningAll

func (set *HotKeySet) StopListeningAll() error

Jump to

Keyboard shortcuts

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