mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Fixes HasFlag behavior by using == keyword.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user