Return self

This commit is contained in:
Chris Miller 2019-11-04 05:42:46 +00:00 committed by Trevor Slocum
parent 74b2573bf9
commit 84d2372c82
1 changed files with 2 additions and 1 deletions

View File

@ -181,10 +181,11 @@ func (a *Application) SetScreen(screen tcell.Screen) *Application {
}
// EnableMouse enables mouse events.
func (a *Application) EnableMouse() {
func (a *Application) EnableMouse() *Application {
a.Lock()
a.enableMouse = true
a.Unlock()
return a
}
// Run starts the application and thus the event loop. This function returns