Skip to content

Fix focus lost when navigating to settings subpages#45111

Merged
as-cii merged 1 commit intomainfrom
fix-settings-subpage-focus
Dec 17, 2025
Merged

Fix focus lost when navigating to settings subpages#45111
as-cii merged 1 commit intomainfrom
fix-settings-subpage-focus

Conversation

@as-cii
Copy link
Member

@as-cii as-cii commented Dec 17, 2025

Fixes #42668

When clicking 'Configure' to enter a settings subpage, focus was being lost because push_sub_page only called cx.notify() without managing focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:

  • Adds window parameter to push_sub_page and pop_sub_page
  • Focuses the content area when entering/leaving subpages
  • Resets scroll position when entering a subpage

Release Notes:

  • Fixed a bug that prevented keyboard navigation in the settings window.

When clicking 'Configure' to enter a settings subpage, focus was being
lost because push_sub_page only called cx.notify() without managing
focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:
- Adds window parameter to push_sub_page and pop_sub_page
- Focuses the content area when entering/leaving subpages
- Resets scroll position when entering a subpage

Fixes #42668
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 17, 2025
@as-cii as-cii merged commit f6c944f into main Dec 17, 2025
24 checks passed
@as-cii as-cii deleted the fix-settings-subpage-focus branch December 17, 2025 16:28
HactarCE pushed a commit that referenced this pull request Dec 17, 2025
Fixes #42668

When clicking 'Configure' to enter a settings subpage, focus was being
lost because push_sub_page only called cx.notify() without managing
focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:
- Adds window parameter to push_sub_page and pop_sub_page
- Focuses the content area when entering/leaving subpages
- Resets scroll position when entering a subpage

Release Notes:

- Fixed a bug that prevented keyboard navigation in the settings window.
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Fixes #42668

When clicking 'Configure' to enter a settings subpage, focus was being
lost because push_sub_page only called cx.notify() without managing
focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:
- Adds window parameter to push_sub_page and pop_sub_page
- Focuses the content area when entering/leaving subpages
- Resets scroll position when entering a subpage

Release Notes:

- Fixed a bug that prevented keyboard navigation in the settings window.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…5111)

Fixes zed-industries#42668

When clicking 'Configure' to enter a settings subpage, focus was being
lost because push_sub_page only called cx.notify() without managing
focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:
- Adds window parameter to push_sub_page and pop_sub_page
- Focuses the content area when entering/leaving subpages
- Resets scroll position when entering a subpage

Release Notes:

- Fixed a bug that prevented keyboard navigation in the settings window.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…5111)

Fixes zed-industries#42668

When clicking 'Configure' to enter a settings subpage, focus was being
lost because push_sub_page only called cx.notify() without managing
focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:
- Adds window parameter to push_sub_page and pop_sub_page
- Focuses the content area when entering/leaving subpages
- Resets scroll position when entering a subpage

Release Notes:

- Fixed a bug that prevented keyboard navigation in the settings window.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
…5111)

Fixes zed-industries#42668

When clicking 'Configure' to enter a settings subpage, focus was being
lost because push_sub_page only called cx.notify() without managing
focus. Similarly, pop_sub_page had the same issue when navigating back.

This fix:
- Adds window parameter to push_sub_page and pop_sub_page
- Focuses the content area when entering/leaving subpages
- Resets scroll position when entering a subpage

Release Notes:

- Fixed a bug that prevented keyboard navigation in the settings window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Focus lost in settings subpages

1 participant