keybindings

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Loader

func Loader(kb *Registry) lua.LGFunction

Types

type Callback

type Callback func() error

type CurrentLayout

type CurrentLayout func() states.StateEnum

Function type that returns the layout that is currently used

type Registry

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

func New

func New(cl CurrentLayout) *Registry

func (*Registry) Add

func (kbr *Registry) Add(layout states.StateEnum, keyString string, callback Callback)

func (*Registry) Run

func (kbr *Registry) Run(e key.Event)

type State

type State struct {
	Key       rune
	Modifiers key.Modifiers
}

func (State) String

func (s State) String() string

type States

type States []State

func (States) String

func (ss States) String() string

Jump to

Keyboard shortcuts

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