[PR #8059] Hook up the Settings UI JSON button #27077

Open
opened 2026-01-31 09:19:51 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8059

State: closed
Merged: Yes


This PR will make the "Open JSON file" navigation view item in the Settings UI will open the user's settings file. Normally, NavigationViewItems raise their parent's ItemInvoked handler, but when a NavViewItem is in the NavigationView.PaneFooter, it doesn't do that. So, we have to hook up OpenJson's Tapped and KeyDown handler to detect both a tap event and the enter keydown events.

References #1564

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8059 **State:** closed **Merged:** Yes --- This PR will make the "Open JSON file" navigation view item in the Settings UI will open the user's settings file. Normally, `NavigationViewItems` raise their parent's `ItemInvoked` handler, but when a `NavViewItem` is in the `NavigationView.PaneFooter`, it doesn't do that. So, we have to hook up `OpenJson`'s `Tapped` and `KeyDown` handler to detect both a tap event and the enter keydown events. References #1564
claunia added the pull-request label 2026-01-31 09:19:51 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27077