Add key contexts for Pickers (#35665)

Closes: https://github.com/zed-industries/zed/issues/35430

Added:
- Workspace > CommandPalette
- Workspace > GitBranchSelector
- Workspace > GitRepositorySelector
- Workspace > RecentProjects
- Workspace > LanguageSelector
- Workspace > IconThemeSelector
- Workspace > ThemeSelector

Release Notes:

- Added new keymap contexts for various Pickers - CommandPalette,
GitBranchSelector, GitRepositorySelector, RecentProjects,
LanguageSelector, IconThemeSelector, ThemeSelector
This commit is contained in:
Peter Tripp 2025-08-06 15:28:18 -04:00 committed by GitHub
parent a80da784b7
commit f9038f6189
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 22 additions and 5 deletions

View file

@ -141,6 +141,7 @@ impl Focusable for RecentProjects {
impl Render for RecentProjects {
fn render(&mut self, _: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
v_flex()
.key_context("RecentProjects")
.w(rems(self.rem_width))
.child(self.picker.clone())
.on_mouse_down_out(cx.listener(|this, _, window, cx| {