keybinds

package
v0.0.0-...-23a5abe Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2013 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events interface {
	Command(string)
}

type Key

type Key struct {
	Mods uint16
	Code xproto.Keycode
	Cmd  string
}

type Keybinds

type Keybinds struct {
	X      *xgbutil.XUtil
	Keys   []*Key
	Events Events
}

func New

func New(xu *xgbutil.XUtil, events Events, keys map[string]string) *Keybinds

New creates a new Keybinds instance. It receives a map which contains keystrings with commands.

func (*Keybinds) Destroy

func (kb *Keybinds) Destroy()

Jump to

Keyboard shortcuts

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