keybindings

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 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

type InvalidBindingError string

func (InvalidBindingError) Error

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

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

func (*Service) Rebind

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

func (*Service) UnbindKey

func (s *Service) UnbindKey(theKey string)

Jump to

Keyboard shortcuts

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