9 lines
238 B
Go
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)
|
|
}
|