fix: modal window focus

This commit is contained in:
ardocrat
2025-05-30 14:14:58 +03:00
parent b8dd5911d4
commit 7ae63b2b66
+3 -1
View File
@@ -130,7 +130,9 @@ impl<Platform: PlatformCallbacks> App<Platform> {
}
// Show modal or keyboard window above others.
ctx.move_to_top(LayerId::new(Order::Middle, egui::Id::new(Modal::WINDOW_ID)));
if Modal::opened().is_some() {
ctx.move_to_top(LayerId::new(Order::Middle, egui::Id::new(Modal::WINDOW_ID)));
}
let keyboard_showing = if let Some(l) = ctx.top_layer_id() {
l.id == egui::Id::new(KeyboardContent::WINDOW_ID)
} else {