From a820b8ce7b192a496a1679a43d6fe4603dfc954b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 19 Mar 2020 08:21:23 +0100 Subject: [PATCH] Rename `PaneGrid::modifiers` to `pressed_modifiers` --- native/src/widget/pane_grid.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs index a2e4ebaa..3e61642e 100644 --- a/native/src/widget/pane_grid.rs +++ b/native/src/widget/pane_grid.rs @@ -20,7 +20,7 @@ use crate::{ #[allow(missing_debug_implementations)] pub struct PaneGrid<'a, Message, Renderer> { state: &'a mut state::Internal, - modifiers: &'a mut keyboard::ModifiersState, + pressed_modifiers: &'a mut keyboard::ModifiersState, elements: Vec<(Pane, Element<'a, Message, Renderer>)>, width: Length, height: Length, @@ -64,7 +64,7 @@ impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer> { Self { state: &mut state.internal, - modifiers: &mut state.modifiers, + pressed_modifiers: &mut state.modifiers, elements, width: Length::Fill, height: Length::Fill, @@ -261,7 +261,7 @@ where match &self.on_drag { Some(on_drag) if self - .modifiers + .pressed_modifiers .matches(self.modifier_keys) => { self.state.pick_pane(pane); @@ -311,7 +311,7 @@ where state: ButtonState::Pressed, }) if self.on_resize.is_some() && self.state.picked_pane().is_none() - && self.modifiers.matches(self.modifier_keys) => + && self.pressed_modifiers.matches(self.modifier_keys) => { let bounds = layout.bounds(); let relative_cursor = Point::new( @@ -390,7 +390,7 @@ where } } - *self.modifiers = modifiers; + *self.pressed_modifiers = modifiers; } _ => {} }