summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--native/src/widget/pane_grid.rs5
-rw-r--r--native/src/widget/pane_grid/state.rs3
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(),
}
}