keybindings

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidBindingError added in v0.2.0

type InvalidBindingError string

func (InvalidBindingError) Error added in v0.2.0

func (e InvalidBindingError) Error() string

type KeyAlreadyBoundError

type KeyAlreadyBoundError struct {
	Key                 string
	ExistingBindingName string
}

func (KeyAlreadyBoundError) Error

func (e KeyAlreadyBoundError) Error() string

type Service

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

func NewService

func NewService(keyBinding any) *Service

func (*Service) LookupBinding added in v0.2.0

func (s *Service) LookupBinding(theKey string) string

func (*Service) Rebind

func (s *Service) Rebind(name string, newKey string) error

func (*Service) UnbindKey added in v0.2.0

func (s *Service) UnbindKey(theKey string)

Jump to

Keyboard shortcuts

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