Skip to content

Commit

Permalink
Dismiss a action preview when the next action isn't previewable (#17533)
Browse files Browse the repository at this point in the history
This became much more obvious with the sendInput previewing. We would
only dismiss previews if the following action was also previewable.

related: #15845
  • Loading branch information
zadjii-msft committed Jul 9, 2024
1 parent 6c01d73 commit 678432a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cascadia/TerminalApp/ActionPreviewHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 678432a

Please sign in to comment.