Example #1
0
 /// <summary>Invoked when the user presses a key.</summary>
 /// <param name="evnt">The event data.</param>
 /// <returns>True if event has handled.</returns>
 protected override bool OnKeyPressEvent(EventKey evnt)
 {
     try
     {
         SheetEventKey keyParams = evnt.ToSheetEventKey();
         sheet.InvokeKeyPress(keyParams);
     }
     catch (Exception ex)
     {
         MainView.MasterView.ShowError(ex);
     }
     return(true);
 }