Kbd builder
A keyboard shortcut, written the way the current platform writes it.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::overlay::Kbd;
Construct
new(keystroke: impl Into<SharedString>) -> SelfOptions
Chain onto the value.
id(ident: impl Into<Ident>) -> SelfQueries
Only answer; they change nothing.
caps(cx: &App) -> Vec<SharedString>Rendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.