We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f9add4 commit a23c1a2Copy full SHA for a23c1a2
src/cascadia/TerminalApp/AppActionHandlers.cpp
@@ -1311,6 +1311,12 @@ namespace winrt::TerminalApp::implementation
1311
const ActionEventArgs& args)
1312
{
1313
auto scratchPane{ winrt::make_self<ScratchpadContent>() };
1314
+
1315
+ // This is maybe a little wacky - add our key event handler to the pane
1316
+ // we made. So that we can get actions for keys that the content didn't
1317
+ // handle.
1318
+ scratchPane->GetRoot().KeyDown({ this, &TerminalPage::_KeyDownHandler });
1319
1320
auto resultPane = std::make_shared<Pane>(*scratchPane);
1321
_SplitPane(SplitDirection::Automatic, 0.5f, resultPane);
1322
args.Handled(true);
0 commit comments