From d83b4a871b956207c77fd296286e13c6200b99eb Mon Sep 17 00:00:00 2001 From: ScrubN <72096833+ScrubN@users.noreply.github.com> Date: Thu, 3 Aug 2023 01:29:02 -0400 Subject: [PATCH] Fix potential for action overlap when pressing enter to search --- TwitchDownloaderWPF/PageChatDownload.xaml.cs | 1 + TwitchDownloaderWPF/PageClipDownload.xaml.cs | 1 + TwitchDownloaderWPF/PageVodDownload.xaml.cs | 1 + TwitchDownloaderWPF/WindowMassDownload.xaml.cs | 1 + 4 files changed, 4 insertions(+) diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs index 0e3e8ce0..cb63fea0 100644 --- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs @@ -593,6 +593,7 @@ private async void TextUrl_OnKeyDown(object sender, KeyEventArgs e) if (e.Key == Key.Enter) { await GetVideoInfo(); + e.Handled = true; } } } diff --git a/TwitchDownloaderWPF/PageClipDownload.xaml.cs b/TwitchDownloaderWPF/PageClipDownload.xaml.cs index 02e43618..891070d0 100644 --- a/TwitchDownloaderWPF/PageClipDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageClipDownload.xaml.cs @@ -287,6 +287,7 @@ private async void TextUrl_OnKeyDown(object sender, KeyEventArgs e) if (e.Key == Key.Enter) { await GetClipInfo(); + e.Handled = true; } } diff --git a/TwitchDownloaderWPF/PageVodDownload.xaml.cs b/TwitchDownloaderWPF/PageVodDownload.xaml.cs index ea923e08..49ee1778 100644 --- a/TwitchDownloaderWPF/PageVodDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageVodDownload.xaml.cs @@ -525,6 +525,7 @@ private async void TextUrl_OnKeyDown(object sender, KeyEventArgs e) if (e.Key == Key.Enter) { await GetVideoInfo(); + e.Handled = true; } } } diff --git a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs index 3233edca..37dbe3e4 100644 --- a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs +++ b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs @@ -255,6 +255,7 @@ private async void TextChannel_OnKeyDown(object sender, KeyEventArgs e) if (e.Key == Key.Enter) { await ChangeCurrentChannel(); + e.Handled = true; } } }