Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Automatically create a hitbox for focusable elements (#9485)

Antonio Scandurra52a9bc3e1bd8
diff --git a/crates/gpui/src/elements/div.rs b/crates/gpui/src/elements/div.rs
index 7e50fee8564..5cc0c70bd54 100644
--- a/crates/gpui/src/elements/div.rs
+++ b/crates/gpui/src/elements/div.rs
@@ -1307,6 +1307,7 @@ impl Interactivity {
|| self.has_hover_styles()
|| self.has_mouse_listeners()
|| self.scroll_offset.is_some()
+ || self.tracked_focus_handle.is_some()
{
Some(cx.insert_hitbox(bounds, self.occlude_mouse))
} else {