forked from Mirrors/bubbletea
Add periods after comments to make the godoc linter happy.
This commit is contained in:
parent
88c1f65e7c
commit
223519f81f
9
key.go
9
key.go
|
@ -126,7 +126,7 @@ const (
|
||||||
keyDEL = 127 // delete. on most systems this is mapped to backspace, I hear
|
keyDEL = 127 // delete. on most systems this is mapped to backspace, I hear
|
||||||
)
|
)
|
||||||
|
|
||||||
// Control key aliases:
|
// Control key aliases.
|
||||||
const (
|
const (
|
||||||
KeyNull = keyNUL
|
KeyNull = keyNUL
|
||||||
KeyBreak = keyETX
|
KeyBreak = keyETX
|
||||||
|
@ -173,7 +173,7 @@ const (
|
||||||
KeyCtrlQuestionMark = keyDEL // ctrl+?
|
KeyCtrlQuestionMark = keyDEL // ctrl+?
|
||||||
)
|
)
|
||||||
|
|
||||||
// Other keys:
|
// Other keys.
|
||||||
const (
|
const (
|
||||||
KeyRune = -(iota + 1)
|
KeyRune = -(iota + 1)
|
||||||
KeyUp
|
KeyUp
|
||||||
|
@ -187,7 +187,7 @@ const (
|
||||||
KeyPgDown
|
KeyPgDown
|
||||||
)
|
)
|
||||||
|
|
||||||
// Mapping for control keys to friendly consts:
|
// Mapping for control keys to friendly consts.
|
||||||
var keyNames = map[int]string{
|
var keyNames = map[int]string{
|
||||||
keyNUL: "ctrl+@", // also ctrl+`
|
keyNUL: "ctrl+@", // also ctrl+`
|
||||||
keySOH: "ctrl+a",
|
keySOH: "ctrl+a",
|
||||||
|
@ -236,8 +236,7 @@ var keyNames = map[int]string{
|
||||||
KeyPgDown: "pgdown",
|
KeyPgDown: "pgdown",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mapping for sequences to consts
|
// Mapping for sequences to consts.
|
||||||
// TODO: should we just move this into the hex table?
|
|
||||||
var sequences = map[string]KeyType{
|
var sequences = map[string]KeyType{
|
||||||
"\x1b[A": KeyUp,
|
"\x1b[A": KeyUp,
|
||||||
"\x1b[B": KeyDown,
|
"\x1b[B": KeyDown,
|
||||||
|
|
Loading…
Reference in New Issue