mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
More actions and window organization
This commit is contained in:
@@ -31,8 +31,13 @@ type MouseEvent struct {
|
||||
mod tcell.ModMask
|
||||
}
|
||||
|
||||
type KeyAction func(Handler) bool
|
||||
type MouseAction func(Handler, tcell.EventMouse) bool
|
||||
|
||||
// A Handler will take a tcell event and execute it
|
||||
// appropriately
|
||||
type Handler interface {
|
||||
// DoKeyEvent(KeyEvent) bool
|
||||
// DoMouseEvent(MouseEvent, *tcell.EventMouse) (MouseAction, bool)
|
||||
HandleEvent(tcell.Event)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user