impl Focusable for Button

This commit is contained in:
Lukas Wirth 2025-08-13 16:40:11 +02:00
parent 6e540a58fa
commit e56672e542
107 changed files with 524 additions and 417 deletions

View file

@ -55,7 +55,7 @@ impl Render for ActiveBufferLanguage {
};
el.child(
Button::new("change-language", active_language_text)
Button::new("change-language", active_language_text, cx)
.label_size(LabelSize::Small)
.on_click(cx.listener(|this, _, window, cx| {
if let Some(workspace) = this.workspace.upgrade() {