Skip to content

Commit

Permalink
nits and such
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Oct 25, 2023
1 parent e9e04d4 commit 7bc1457
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/TerminalApp/AppActionHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,14 +1426,14 @@ namespace winrt::TerminalApp::implementation
{
if (Feature_ScratchpadPane::IsEnabled())
{
auto scratchPane{ winrt::make_self<ScratchpadContent>() };
const auto& scratchPane{ winrt::make_self<ScratchpadContent>() };

// This is maybe a little wacky - add our key event handler to the pane
// we made. So that we can get actions for keys that the content didn't
// handle.
scratchPane->GetRoot().KeyDown({ this, &TerminalPage::_KeyDownHandler });

auto resultPane = std::make_shared<Pane>(*scratchPane);
const auto resultPane = std::make_shared<Pane>(*scratchPane);
_SplitPane(_GetFocusedTabImpl(), SplitDirection::Automatic, 0.5f, resultPane);
args.Handled(true);
}
Expand Down
3 changes: 1 addition & 2 deletions src/cascadia/TerminalApp/ScratchpadContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ namespace winrt::TerminalApp::implementation
ScratchpadContent::ScratchpadContent()
{
_root = winrt::Windows::UI::Xaml::Controls::Grid{};
_root.VerticalAlignment(VerticalAlignment::Stretch);
_root.HorizontalAlignment(HorizontalAlignment::Stretch);
// Vertical and HorizontalAlignment are Stretch by default

auto res = Windows::UI::Xaml::Application::Current().Resources();
auto bg = res.Lookup(winrt::box_value(L"UnfocusedBorderBrush"));
Expand Down
1 change: 1 addition & 0 deletions src/features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
<stage>AlwaysDisabled</stage>
<alwaysEnabledBrandingTokens>
<brandingToken>Dev</brandingToken>
<brandingToken>Canary</brandingToken>
</alwaysEnabledBrandingTokens>
</feature>

Expand Down

0 comments on commit 7bc1457

Please sign in to comment.