mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-09 07:41:06 +00:00
keybindings too
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user