Browse Source

Revert "Fixes HasFlag behavior by using Equals keyword"

This reverts commit a6daa4d4744d9b138a0cca5e29551a3ed16a163a.
BDisp 4 years ago
parent
commit
35cbf68a3a
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.Equals (Key.Q | Key.CtrlMask))) {
+					|| e.KeyEvent.Key.HasFlag (Key.Q | Key.CtrlMask))) {
 					DisposeWinDialog ();
-				} else if (e.KeyEvent.Key.Equals (Key.Q | Key.CtrlMask)) {
+				} else if (e.KeyEvent.Key.HasFlag (Key.Q | Key.CtrlMask)) {
 					Quit ();
 					e.Handled = true;
 				}