summaryrefslogtreecommitdiffstats
path: root/src/tuine/component/base/shortcut.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tuine/component/base/shortcut.rs')
-rw-r--r--src/tuine/component/base/shortcut.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tuine/component/base/shortcut.rs b/src/tuine/component/base/shortcut.rs
index 812a3d63..7300341f 100644
--- a/src/tuine/component/base/shortcut.rs
+++ b/src/tuine/component/base/shortcut.rs
@@ -8,8 +8,8 @@ use rustc_hash::FxHashMap;
use tui::{backend::Backend, layout::Rect, Frame};
use crate::tuine::{
- Bounds, DrawContext, Event, Key, LayoutNode, Size, StateContext, StatefulComponent, Status,
- TmpComponent,
+ Bounds, BuildContext, DrawContext, Event, Key, LayoutNode, Size, StateContext,
+ StatefulComponent, Status, TmpComponent,
};
const MAX_TIMEOUT: Duration = Duration::from_millis(400);
@@ -145,7 +145,7 @@ where
type ComponentState = ShortcutState;
- fn build(ctx: &mut crate::tuine::BuildContext<'_>, props: Self::Properties) -> Self {
+ fn build(ctx: &mut BuildContext<'_>, props: Self::Properties) -> Self {
let (key, state) =
ctx.register_and_mut_state::<_, Self::ComponentState>(Location::caller());
let mut forest: FxHashMap<Vec<Event>, bool> = FxHashMap::default();