diff options
author | 2020-07-09 05:28:19 +0200 | |
---|---|---|
committer | 2020-07-09 05:28:42 +0200 | |
commit | 2334c7d1d558818ae469a4cf629eb2ba82eaa4dc (patch) | |
tree | c16c656dff3e4fbe02feba31489ec7845c608231 /native | |
parent | e3cd947437cad1a53715b77b63e6c7a348de97c5 (diff) | |
download | iced-2334c7d1d558818ae469a4cf629eb2ba82eaa4dc.tar.gz iced-2334c7d1d558818ae469a4cf629eb2ba82eaa4dc.tar.bz2 iced-2334c7d1d558818ae469a4cf629eb2ba82eaa4dc.zip |
Stop tracking `pressed_modifiers` in `PaneGrid`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/pane_grid.rs | 5 | ||||
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs index 5313e993..24cf5094 100644 --- a/native/src/widget/pane_grid.rs +++ b/native/src/widget/pane_grid.rs @@ -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; - } _ => {} } } diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index 3f0accc1..e1585968 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -1,5 +1,4 @@ use crate::{ - keyboard, pane_grid::{Axis, Configuration, Direction, Node, Pane, Split}, Hasher, Point, Rectangle, Size, }; @@ -25,7 +24,6 @@ use std::collections::HashMap; pub struct State<T> { pub(super) panes: HashMap<Pane, T>, pub(super) internal: Internal, - pub(super) modifiers: keyboard::ModifiersState, } /// The current focus of a [`Pane`]. @@ -76,7 +74,6 @@ impl<T> State<T> { last_id, action: Action::Idle { focus: None }, }, - modifiers: keyboard::ModifiersState::default(), } } |