cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Ctrl + UP and Ctrl + DOWN

Former Member
0 Kudos

Hi all,

Im just curious whether I can use ctrl + arrow UP button in keyboard to move from one row to another in matrix (nonsystem form). i have tested using modifiers but it seems like it cant recognize the ascii.

anyone has done it before? mind to share? thanks..

erwine

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Erwine,

I think that you have to use the modifiers with Char(38) and Char(40) which is up and down keys.

Hope it helps,

Adele

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, Erwine!

Pressing CTRL calls et_KEY_DOWN event only if you press CTRLTAB OR CTRLDEL. Other buttons with CTRL are not handled. I think it's because of standard system combinations (CTRLC, CTRLV, CTRL+1,2... - managing windows in SBO).

It's better to use SHIFT(or other Modifiers)+some_button to move from one row to another in your matrix.

Best regards,

Aleksey

Former Member
0 Kudos

I have applied it. it doesnt work too

If pval.CharPressed = 38 Then

If pval.Modifiers = SAPbouiCOM.BoModifiersEnum.mt_CTRL Then

MsgBox("up")

End If

ElseIf pval.CharPressed = 40 Then

If pval.Modifiers = SAPbouiCOM.BoModifiersEnum.mt_CTRL Then

MsgBox("down")

End If

ElseIf pval.CharPressed = 9 Then

If pval.Modifiers = SAPbouiCOM.BoModifiersEnum.mt_CTRL Then

MsgBox("tab")

End If

End If

the code above is only for simple testing. it only worked only when i pressed ctrl+tab, not for up and down.

i put the codes in beforeaction = true