keybindings too

This commit is contained in:
Mike Griese
2023-07-20 07:39:02 -05:00
parent 5f9add4000
commit a23c1a24dc

View File

@@ -1311,6 +1311,12 @@ namespace winrt::TerminalApp::implementation
const ActionEventArgs& args)
{
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);
_SplitPane(SplitDirection::Automatic, 0.5f, resultPane);
args.Handled(true);