bugfix dropdown closing by ESC
This commit is contained in:
@@ -120,7 +120,6 @@
|
||||
FontWeight="Bold"
|
||||
Visibility="Visible" />
|
||||
<buc:Badge Margin="6 0 0 0"
|
||||
IsSparkleEnabled="True"
|
||||
VerticalAlignment="Center"
|
||||
Text="Beta">
|
||||
<buc:Badge.LayoutTransform>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
Background="Transparent"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
||||
PreviewKeyDown="CustomMessageBox_PreviewKeyDown"
|
||||
KeyDown="CustomMessageBox_KeyDown"
|
||||
IsVisibleChanged="BlurInvoker_IsActiveChanged">
|
||||
|
||||
<WindowChrome.WindowChrome>
|
||||
|
||||
@@ -280,21 +280,15 @@ namespace FasdDesktopUi.Pages.TicketCompletion
|
||||
|
||||
#endregion
|
||||
|
||||
private void CustomMessageBox_PreviewKeyDown(object sender, KeyEventArgs e)
|
||||
private void CustomMessageBox_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
switch (e.Key)
|
||||
if (e.Key != Key.Escape)
|
||||
{
|
||||
case Key.Escape:
|
||||
if (CloseCaseDialogUc?.TryHandleEscapeKey() == true)
|
||||
{
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Close_Click();
|
||||
e.Handled = true;
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
Close_Click();
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private async Task DoCloseActionAsync()
|
||||
|
||||
Reference in New Issue
Block a user