pdfSetKeyDownCbk

Set a callback function for key-down events.
void pdfSetKeyDownCbk(PDFViewerHandle viewer, void (*cbk)(void *data, int code, int shift), void *data)
This function sets a callback which will be called when a user presses a key.

The function will be called with three arguments:

C:
void keyDownCbk(void *data, int code, int shift) { Context *myContext = (Context *)data; /* process the key press ... */ } .... pdfSetKeyDownCbk(viewer, &keyDownCbk, &myContext);
pdfSetKeyUpCbk
pdfSetKeyPressCbk