Browse Source

Refactored keydown/up/press events to use event vs. Action<T>

Charlie Kindel 5 years ago
parent
commit
09a06080ec
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Terminal.Gui/Core.cs

+ 5 - 0
Terminal.Gui/Core.cs

@@ -1070,6 +1070,11 @@ namespace Terminal.Gui {
 			public KeyEvent KeyEvent { get; set; }
 		}
 
+		public class KeyEventEventArgs : EventArgs {
+			public KeyEventEventArgs(KeyEvent ke) => KeyEvent = ke;
+			public KeyEvent KeyEvent { get; set; }
+		}
+
 		/// <summary>
 		/// Invoked when a character key is pressed and occurs after the key up event.
 		/// </summary>