Browse Source

Fixes HasFlag behavior by using == keyword.

BDisp 4 years ago
parent
commit
e22b52e665
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UICatalog/Scenarios/Editor.cs

+ 2 - 2
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;
 				}