forked from Mirrors/bubbletea
Add TODO + comment
This commit is contained in:
parent
abf5c6e845
commit
23432f30dd
2
key.go
2
key.go
|
@ -129,6 +129,7 @@ const (
|
||||||
KeyCtrlQuestionMark = keyDEL // ctrl+?
|
KeyCtrlQuestionMark = keyDEL // ctrl+?
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Other keys we track
|
||||||
const (
|
const (
|
||||||
KeyRune = -(iota + 1)
|
KeyRune = -(iota + 1)
|
||||||
KeyUp
|
KeyUp
|
||||||
|
@ -192,6 +193,7 @@ var keyNames = map[int]string{
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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