Skip to Content
0
Former Member
Sep 21, 2005 at 09:07 AM

Problems with key down event

127 Views

Hello,

I've created a new form with a matrix, from an xml file and I enabled the Data->Delete Row (CTRLK) menu. When I delete a row in the matrix from context menu or "Data->Delete row" it works fine, but the CTRLK shortcut doesn't work. I tryed to enble it with KEY_DOWN event but it doesn't work with the CTRL modifier.

This is the code I've tryed, but it doesn't work:

If pVal.EventType = SAPbouiCOM.BoEventTypes.et_KEY_DOWN Then
  If pVal.CharPressed = 107 And pVal.Modifiers = SAPbouiCOM.BoModifiersEnum.mt_CTRL Then 
     MssageBox.Show("pillado")
  End If
End If

Thanks in advance