diff --git a/src/cascadia/TerminalApp/Resources/en-US/Resources.resw b/src/cascadia/TerminalApp/Resources/en-US/Resources.resw index 29e70316f88..195535985d9 100644 --- a/src/cascadia/TerminalApp/Resources/en-US/Resources.resw +++ b/src/cascadia/TerminalApp/Resources/en-US/Resources.resw @@ -436,6 +436,9 @@ About + + Send Feedback + OK @@ -447,6 +450,10 @@ Getting Started A hyperlink name for a guide on how to get started using Terminal + + Source Code + A hyperlink name for the Terminal's documentation + Documentation A hyperlink name for user documentation diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp index f4b2f262d62..2032125d0e4 100644 --- a/src/cascadia/TerminalApp/TerminalPage.cpp +++ b/src/cascadia/TerminalApp/TerminalPage.cpp @@ -693,8 +693,8 @@ namespace winrt::TerminalApp::implementation // Method Description: // - Show a dialog with "About" information. Displays the app's Display - // Name, version, getting started link, documentation link, release - // Notes link, and privacy policy link. + // Name, version, getting started link, source code link, documentation link, release + // Notes link, send feedback link and privacy policy link. void TerminalPage::_ShowAboutDialog() { _ShowDialogHelper(L"AboutDialog"); @@ -710,6 +710,11 @@ namespace winrt::TerminalApp::implementation return CascadiaSettings::ApplicationVersion(); } + void TerminalPage::_SendFeedbackOnClick(const IInspectable& /*sender*/, const Windows::UI::Xaml::Controls::ContentDialogButtonClickEventArgs& /*eventArgs*/) + { + ShellExecute(nullptr, nullptr, L"https://github.com/microsoft/terminal/issues", nullptr, nullptr, SW_SHOW); + } + void TerminalPage::_ThirdPartyNoticesOnClick(const IInspectable& /*sender*/, const Windows::UI::Xaml::RoutedEventArgs& /*eventArgs*/) { std::filesystem::path currentPath{ wil::GetModuleFileNameW(nullptr) }; diff --git a/src/cascadia/TerminalApp/TerminalPage.h b/src/cascadia/TerminalApp/TerminalPage.h index 9a4e0a13d55..3d5b70efe5e 100644 --- a/src/cascadia/TerminalApp/TerminalPage.h +++ b/src/cascadia/TerminalApp/TerminalPage.h @@ -251,6 +251,7 @@ namespace winrt::TerminalApp::implementation void _CommandPaletteButtonOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs); void _AboutButtonOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs); void _ThirdPartyNoticesOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs); + void _SendFeedbackOnClick(const IInspectable& sender, const Windows::UI::Xaml::Controls::ContentDialogButtonClickEventArgs& eventArgs); void _KeyDownHandler(const Windows::Foundation::IInspectable& sender, const Windows::UI::Xaml::Input::KeyRoutedEventArgs& e); static ::Microsoft::Terminal::Core::ControlKeyStates _GetPressedModifierKeys() noexcept; diff --git a/src/cascadia/TerminalApp/TerminalPage.xaml b/src/cascadia/TerminalApp/TerminalPage.xaml index 41bb331e405..a2f430cfcb1 100644 --- a/src/cascadia/TerminalApp/TerminalPage.xaml +++ b/src/cascadia/TerminalApp/TerminalPage.xaml @@ -100,13 +100,16 @@ x:Uid="AboutDialog" Grid.Row="2" x:Load="False" - DefaultButton="Close"> + DefaultButton="Close" + PrimaryButtonClick="_SendFeedbackOnClick"> +