diff --git a/UICatalog/Scenarios/Editor.cs b/UICatalog/Scenarios/Editor.cs index ae32eaf19..0ba5d4de0 100644 --- a/UICatalog/Scenarios/Editor.cs +++ b/UICatalog/Scenarios/Editor.cs @@ -137,9 +137,9 @@ namespace UICatalog { Win.KeyPress += (e) => { if (winDialog != null && (e.KeyEvent.Key == Key.Esc - || e.KeyEvent.Key.HasFlag (Key.Q | Key.CtrlMask))) { + || e.KeyEvent.Key == (Key.Q | Key.CtrlMask))) { DisposeWinDialog (); - } else if (e.KeyEvent.Key.HasFlag (Key.Q | Key.CtrlMask)) { + } else if (e.KeyEvent.Key == (Key.Q | Key.CtrlMask)) { Quit (); e.Handled = true; }