From 246013cfc27922d1ed75d3df2f86787e59f34307 Mon Sep 17 00:00:00 2001 From: 5brian Date: Tue, 8 Apr 2025 17:57:36 -0400 Subject: [PATCH] tab_switcher: Add keybind to close tab tooltip (#27212) | prev | new | |--|--| |image|image| Release Notes: - N/A --- crates/tab_switcher/src/tab_switcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tab_switcher/src/tab_switcher.rs b/crates/tab_switcher/src/tab_switcher.rs index 2f3b4a65ae..b8912802d2 100644 --- a/crates/tab_switcher/src/tab_switcher.rs +++ b/crates/tab_switcher/src/tab_switcher.rs @@ -450,7 +450,7 @@ impl PickerDelegate for TabSwitcherDelegate { IconButton::new("close_tab", IconName::Close) .icon_size(IconSize::Small) .icon_color(indicator_color) - .tooltip(Tooltip::text("Close")) + .tooltip(Tooltip::for_action_title("Close", &CloseSelectedItem)) .on_click(cx.listener(move |picker, _, window, cx| { cx.stop_propagation(); picker.delegate.close_item_at(ix, window, cx);