-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to open the Settings UI tab through openSettings (#…
…7802) This PR's goal was to add an option to the `OpenSettings` keybinding to open the Settings UI in a tab. In order to implement that, a couple of changes had to be made to `Tab`, specifically: - Introduce a tab interface named `ITab` - Create/Rename two new Tab classes that implement `ITab` called `SettingsTab` and `TerminalTab` I've also put some `TODOs` that I wanted to get some thoughts on - I'll make a follow up PR but perhaps they can be revisited when we flesh out the Settings UI more. - Does a Settings UI tab shutdown need to do anything special for cleanup? - Does a Settings UI tab need to have `GetActiveTitle`? Maybe depending on which page in the UI is open? - Technically, I can't focus a `Grid` control, so I'll need to figure out what to `Focus` when the tab is selected. - The Settings UI tab doesn't have a `TermControl`, so once focus is moved to that tab, users won't be able to `nextTab/prevTab` out of it (along with all other keybindings). References #1564, #5915
- Loading branch information
Showing
26 changed files
with
790 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ IExplorer | |
IMap | ||
IObject | ||
IStorage | ||
ITab | ||
llabs | ||
LCID | ||
lround | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
import "Command.idl"; | ||
|
||
namespace TerminalApp | ||
{ | ||
interface ITab | ||
{ | ||
String Title { get; }; | ||
Windows.UI.Xaml.Controls.IconSource IconSource { get; }; | ||
Command SwitchToTabCommand; | ||
Microsoft.UI.Xaml.Controls.TabViewItem TabViewItem { get; }; | ||
Windows.UI.Xaml.FrameworkElement Content { get; }; | ||
Windows.UI.Xaml.FocusState FocusState { get; }; | ||
|
||
void Focus(Windows.UI.Xaml.FocusState focusState); | ||
void Shutdown(); | ||
} | ||
} |
Oops, something went wrong.