pdfSetKeyUpCbk
Set a callback function for key-up events.
void pdfSetKeyUpCbk(PDFViewerHandle viewer,
void (*cbk)(void *data, int code, int shift),
void *data)
This function sets a callback which will be called when a user
releases a key.
The function will be called with three arguments:
data
: the value of thedata
argument that was passed topdfSetKeyUpCbk
code
: the key codeshift
: the shift/control/alt bit mask, which contains zero or more bit flags frompdfShiftKey
,pdfCtrlKey
, andpdfAltKey
C:
void keyUpCbk(void *data, int code, int shift) {
Context *myContext = (Context *)data;
/* process the key release ... */
}
....
pdfSetKeyUpCbk(viewer, &keyUpCbk, &myContext);