Merge pull request #430 from hecrj/feature/keyboard-modifiers-event

Add `ModifiersChanged` to `keyboard::Event`
This commit is contained in:
Héctor Ramón 2020-07-01 22:44:26 +02:00 committed by GitHub
commit 79aa225001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -92,6 +92,9 @@ pub fn window_event(
}
}
})),
WindowEvent::ModifiersChanged(new_modifiers) => Some(Event::Keyboard(
keyboard::Event::ModifiersChanged(modifiers_state(*new_modifiers)),
)),
WindowEvent::HoveredFile(path) => {
Some(Event::Window(window::Event::FileHovered(path.clone())))
}