Stop tracking pressed_modifiers in PaneGrid
This commit is contained in:
parent
e3cd947437
commit
2334c7d1d5
2 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue