add focus event

This commit is contained in:
cossonleo 2021-01-15 22:40:16 +08:00
parent 0646280d67
commit 0b140488b4
2 changed files with 6 additions and 0 deletions

View file

@ -29,4 +29,7 @@ pub enum Event {
/// There will be a single `FilesHoveredLeft` event triggered even if
/// multiple files were hovered.
FilesHoveredLeft,
/// A window was focused or not
Focused(bool),
}