summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
Diffstat (limited to 'native')
-rw-r--r--native/src/widget/pane_grid/state.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs
index 57fdbc55..a4cfb6f6 100644
--- a/native/src/widget/pane_grid/state.rs
+++ b/native/src/widget/pane_grid/state.rs
@@ -193,6 +193,13 @@ impl<T> State<T> {
self.internal.focus(pane);
}
+ /// Unfocuses the current focused [`Pane`].
+ ///
+ /// [`Pane`]: struct.Pane.html
+ pub fn unfocus(&mut self) {
+ self.internal.unfocus();
+ }
+
/// Splits the given [`Pane`] into two in the given [`Axis`] and
/// initializing the new [`Pane`] with the provided internal state.
///