From 3ca06ea14603abded9c15287865a51a3add4e436 Mon Sep 17 00:00:00 2001 From: Paul DiPietro Date: Tue, 16 Aug 2016 13:33:11 -0500 Subject: [PATCH] [Windows] Correct enter/esc keypress behaviors for MessageDialog (#292) --- Xamarin.Forms.Platform.WinRT/Platform.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xamarin.Forms.Platform.WinRT/Platform.cs b/Xamarin.Forms.Platform.WinRT/Platform.cs index 99e51e4..a0b1ca5 100644 --- a/Xamarin.Forms.Platform.WinRT/Platform.cs +++ b/Xamarin.Forms.Platform.WinRT/Platform.cs @@ -738,13 +738,13 @@ namespace Xamarin.Forms.Platform.WinRT if (options.Accept != null) { dialog.Commands.Add(new UICommand(options.Accept)); - dialog.DefaultCommandIndex = (uint)dialog.Commands.Count - 1; + dialog.DefaultCommandIndex = 0; } if (options.Cancel != null) { dialog.Commands.Add(new UICommand(options.Cancel)); - dialog.CancelCommandIndex = 0; + dialog.CancelCommandIndex = (uint)dialog.Commands.Count - 1; } IUICommand command = await dialog.ShowAsync(); -- 2.7.4