diff --git a/rmenu/src/gui/mod.rs b/rmenu/src/gui/mod.rs index 6353ed7..dbf55b6 100644 --- a/rmenu/src/gui/mod.rs +++ b/rmenu/src/gui/mod.rs @@ -59,6 +59,7 @@ fn gui_main() -> Element { }); // declare keyboard handler + #[cfg(debug_assertions)] let window = dioxus_desktop::use_window(); let key_ctx = use_context::(); let keydown = move |e: KeyboardEvent| {