Fixes HasFlag behavior by using == keyword.

This commit is contained in:
BDisp
2021-07-19 18:39:43 +01:00
parent 35cbf68a3a
commit e22b52e665

View File

@@ -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;
}