Stop tracking pressed_modifiers in PaneGrid

This commit is contained in:
Héctor Ramón Jiménez 2020-07-09 05:28:19 +02:00
parent e3cd947437
commit 2334c7d1d5
2 changed files with 0 additions and 8 deletions

View file

@ -88,7 +88,6 @@ use crate::{
#[allow(missing_debug_implementations)]
pub struct PaneGrid<'a, Message, Renderer: self::Renderer> {
state: &'a mut state::Internal,
pressed_modifiers: &'a mut keyboard::ModifiersState,
elements: Vec<(Pane, Content<'a, Message, Renderer>)>,
width: Length,
height: Length,
@ -143,7 +142,6 @@ where
Self {
state: &mut state.internal,
pressed_modifiers: &mut state.modifiers,
elements,
width: Length::Fill,
height: Length::Fill,
@ -558,9 +556,6 @@ where
}
}
}
keyboard::Event::ModifiersChanged(modifiers) => {
*self.pressed_modifiers = modifiers;
}
_ => {}
}
}