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.

ui: Expose keybinding visibility (#63770)

Jakub Konkae0ae50d1b19e
diff --git a/crates/ui/src/components/keybinding.rs b/crates/ui/src/components/keybinding.rs
index f09da655458..0d03ddff3c1 100644
--- a/crates/ui/src/components/keybinding.rs
+++ b/crates/ui/src/components/keybinding.rs
@@ -116,7 +116,8 @@ impl KeyBinding {
cx.refresh_windows();
}
- fn default_visibility(cx: &mut App) -> bool {
+ /// Returns whether keybindings are visible application-wide.
+ pub fn default_visibility(cx: &mut App) -> bool {
cx.default_global::<KeyBindingVisibility>().0
}