cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with key down event

Former Member
0 Kudos

Does anyone know why the key down event would not work properly?

I want to pop open my choose from list form on the tab key event. I can see the event happening in event spy but when my application tries to handle the key down event it does not get excuted.

I have tried the code with my filters enabled and without them. Both ways are unsuccessful.

Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Laura,

I used this code to respond on a tab key-down

I did not filter out the key-down event but only used the pVal.CharPressed.

It worked for me.


If pVal.ItemUID = "<MyObject>" And pVal.CharPressed = 9 Then
 <Do Something>                     
End If

Former Member
0 Kudos

Not sure what you mean by filter out the key down event. Do you mean you don't have any filtering in your add on? That would not be an option for me as our add on runs much too slow without filtering.

Thanks for the reply though as I may have to try this method anyway if I cannot figure out why the key down event does not get picked up by my code.

Former Member
0 Kudos

What I ment is I do not use:


pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_KEY_DOWN

I think it does not catch the event of object you want to use is on only of the form itself.

when I left out this code it worked.

Message was edited by: Michiel kramer

Former Member
0 Kudos

Thanks Michiel,

I used your tab code along with the et_KEY_DOWN event and it works fine now.

Answers (0)