Move handling of modifier changes to new View hook

This commit is contained in:
Nathan Sobo 2022-10-16 12:47:48 -06:00
parent 6e363e464c
commit b9308ad80d
4 changed files with 57 additions and 77 deletions

View file

@ -11,7 +11,7 @@ pub struct KeyUpEvent {
pub keystroke: Keystroke,
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, Default)]
pub struct ModifiersChangedEvent {
pub ctrl: bool,
pub alt: bool,