Page 1 of 1

defining a key to a function

PostPosted: Sun Jun 20, 2021 9:21 am
by plantenkennis
Hello,
I have a browse with all plantnames. If I doubleclick on a row a new window is opened that shows all the details of that plant. On this window I have two buttons to go to the previous row or the next row.
Now i want to do this by clicking on the keyboard with the go-left or go-right button. Is this possible? So can I link a function to a key on the keyboard?

Re: defining a key to a function

PostPosted: Mon Jun 21, 2021 9:41 am
by Antonio Linares
René,

Pease try this:

oBrowse:bKeyDown = { | nKey | MsgInfo( nKey ) }

and check if GoLeft and GoRight keys get trapped with that

Re: defining a key to a function

PostPosted: Tue Jun 22, 2021 6:28 pm
by plantenkennis
Hello Antonio,

Thanks, that works. The GoLeft has number 63234 and the GoRight has 63235. I use the bKeyDown on a window instead of a browse. The window that is opened has seven tabs and on 4 of them there are browses. It also works on Get's