mirror of
https://github.com/rivo/tview.git
synced 2025-04-24 13:48:56 +08:00
Return self
This commit is contained in:
parent
96875c75b9
commit
2f4b6ad748
@ -168,10 +168,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user