From 8c85440d0a7888de596bfaa3a8d61fdde5eb928e Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Thu, 9 Mar 2023 11:28:20 -0600 Subject: [PATCH] Update src/CommunityToolkit.Maui.Core/Platform/KeyboardManager/KeyboardExtensions.shared.cs Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com> --- .../Platform/KeyboardManager/KeyboardExtensions.shared.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CommunityToolkit.Maui.Core/Platform/KeyboardManager/KeyboardExtensions.shared.cs b/src/CommunityToolkit.Maui.Core/Platform/KeyboardManager/KeyboardExtensions.shared.cs index 7a43f1f86..933d9b577 100644 --- a/src/CommunityToolkit.Maui.Core/Platform/KeyboardManager/KeyboardExtensions.shared.cs +++ b/src/CommunityToolkit.Maui.Core/Platform/KeyboardManager/KeyboardExtensions.shared.cs @@ -81,6 +81,7 @@ public static Task HideKeyboardAsync(this ITextInput targetView, Cancellat /// Returns true if the platform was able to show the soft input device. public static Task ShowKeyboardAsync(this ITextInput targetView, CancellationToken token) { + token.ThrowIfCancellationRequested(); if (!targetView.TryGetPlatformView( out var platformView, out var handler,