bubbletea/focus.go
Ayman Bagabas e58efab371
feat: support focus-blur events (#1122)
* feat: support focus-blur events

This backports @caarlos0 focus-blur changes from v2-exp to v1 https://github.com/charmbracelet/bubbletea/pull/1081

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Update key_sequences.go

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: go mod tidy

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
2024-08-30 09:20:01 -04:00

9 lines
247 B
Go

package tea
// FocusMsg represents a terminal focus message.
// This occurs when the terminal gains focus.
type FocusMsg struct{}
// BlurMsg represents a terminal blur message.
// This occurs when the terminal loses focus.
type BlurMsg struct{}