shortcut

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package shortcut provides a shortcut keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func View

func View(m Model) (s string)

View function.

Types

type Key

type Key struct {
	// Key is the key combination such as "q".
	Key string

	// Label is the key label such as "Quit".
	Label string
}

Key is a shortcut key.

type Model

type Model struct {
	// Keys is a set of keyboard shortcuts available.
	Keys []Key
}

Model is the input model.

Jump to

Keyboard shortcuts

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