Dismiss a action preview when the next action isn't previewable (#17533)

This became much more obvious with the sendInput previewing. We would
only dismiss previews if the following action was also previewable.

related: #15845
This commit is contained in:
Mike Griese 2024-07-09 16:12:32 -05:00 committed by GitHub
parent 6c01d736fa
commit 678432ac6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,6 +172,9 @@ namespace winrt::TerminalApp::implementation
case ShortcutAction::SendInput:
_PreviewSendInput(args.Args().try_as<SendInputArgs>());
break;
default:
_EndPreview();
return;
}
// GH#9818 Other ideas for actions that could be preview-able: