mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Improve internal keyevent names
This commit is contained in:
12
internal/action/keytree.go
Normal file
12
internal/action/keytree.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user