فهرست منبع

Fixes HasFlag behavior by using Equals keyword

BDisp 4 سال پیش
والد
کامیت
a6daa4d474
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      UICatalog/Scenarios/Editor.cs

+ 2 - 2
UICatalog/Scenarios/Editor.cs

@@ -137,9 +137,9 @@ namespace UICatalog {
 
 
 			Win.KeyPress += (e) => {
 			Win.KeyPress += (e) => {
 				if (winDialog != null && (e.KeyEvent.Key == Key.Esc
 				if (winDialog != null && (e.KeyEvent.Key == Key.Esc
-					|| e.KeyEvent.Key.HasFlag (Key.Q | Key.CtrlMask))) {
+					|| e.KeyEvent.Key.Equals (Key.Q | Key.CtrlMask))) {
 					DisposeWinDialog ();
 					DisposeWinDialog ();
-				} else if (e.KeyEvent.Key.HasFlag (Key.Q | Key.CtrlMask)) {
+				} else if (e.KeyEvent.Key.Equals (Key.Q | Key.CtrlMask)) {
 					Quit ();
 					Quit ();
 					e.Handled = true;
 					e.Handled = true;
 				}
 				}