File tree 3 files changed +21
-9
lines changed
3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -1320,15 +1320,18 @@ namespace winrt::TerminalApp::implementation
1320
1320
void TerminalPage::_HandleOpenScratchpad (const IInspectable& /* sender*/ ,
1321
1321
const ActionEventArgs& args)
1322
1322
{
1323
- auto scratchPane{ winrt::make_self<ScratchpadContent>() };
1323
+ if (Feature_ScratchpadPane::IsEnabled ())
1324
+ {
1325
+ auto scratchPane{ winrt::make_self<ScratchpadContent>() };
1324
1326
1325
- // This is maybe a little wacky - add our key event handler to the pane
1326
- // we made. So that we can get actions for keys that the content didn't
1327
- // handle.
1328
- scratchPane->GetRoot ().KeyDown ({ this , &TerminalPage::_KeyDownHandler });
1327
+ // This is maybe a little wacky - add our key event handler to the pane
1328
+ // we made. So that we can get actions for keys that the content didn't
1329
+ // handle.
1330
+ scratchPane->GetRoot ().KeyDown ({ this , &TerminalPage::_KeyDownHandler });
1329
1331
1330
- auto resultPane = std::make_shared<Pane>(*scratchPane);
1331
- _SplitPane (SplitDirection::Automatic, 0 .5f , resultPane);
1332
- args.Handled (true );
1332
+ auto resultPane = std::make_shared<Pane>(*scratchPane);
1333
+ _SplitPane (SplitDirection::Automatic, 0 .5f , resultPane);
1334
+ args.Handled (true );
1335
+ }
1333
1336
}
1334
1337
}
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ namespace winrt::TerminalApp::implementation
20
20
21
21
auto res = Windows::UI::Xaml::Application::Current ().Resources ();
22
22
auto bg = res.Lookup (winrt::box_value (L" UnfocusedBorderBrush" ));
23
- // _root.Background(Media::SolidColorBrush{ winrt::Windows::UI::Colors::Red() });
24
23
_root.Background (bg.try_as <Media::Brush>());
25
24
26
25
_box = winrt::Windows::UI::Xaml::Controls::TextBox{};
Original file line number Diff line number Diff line change 173
173
</alwaysEnabledBrandingTokens >
174
174
</feature >
175
175
176
+ <feature >
177
+ <name >Feature_ScratchpadPane</name >
178
+ <description >Allow the user to create scratchpad panes. Mostly just exists to validate non-terminal panes.</description >
179
+ <id >997</id >
180
+ <stage >AlwaysDisabled</stage >
181
+ <alwaysEnabledBrandingTokens >
182
+ <brandingToken >Dev</brandingToken >
183
+ </alwaysEnabledBrandingTokens >
184
+ </feature >
185
+
176
186
</featureStaging >
You can’t perform that action at this time.
0 commit comments