micro/internal/action/keytree.go

13 lines
243 B
Go
Raw Normal View History

2020-06-29 07:50:19 +03:00
package action
type KeyAction func(Pane) bool
type MouseAction func(Pane, *MouseEvent) bool
type KeyAnyAction func(Pane, keys []KeyEvent)
type KeyTreeNode struct {
children map[Event]KeyTreeNode
// action KeyAction
// any KeyAnyAction
}