tui/events.go
Timon Ringwald dfa00f5fe3 more views
2022-04-02 13:01:41 +02:00

9 lines
238 B
Go

package tui
type Events interface {
// KeyPressed is called every time a key or key-combination is pressed.
// If KeyPressed returns true, the event will not be passed onto child views
OnKeyPressed(event *KeyEvent) (consumed bool)
}