Skip to content

Commit a23c1a2

Browse files
committed
keybindings too
1 parent 5f9add4 commit a23c1a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cascadia/TerminalApp/AppActionHandlers.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,12 @@ namespace winrt::TerminalApp::implementation
13111311
const ActionEventArgs& args)
13121312
{
13131313
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+
13141320
auto resultPane = std::make_shared<Pane>(*scratchPane);
13151321
_SplitPane(SplitDirection::Automatic, 0.5f, resultPane);
13161322
args.Handled(true);

0 commit comments

Comments
 (0)