Hi,
I am overriding ProcessCmdKey to detect when a user press a combination of keys to scroll up and down in the pdfViewer. I'm currently using .PageUp() and .PageDown(), but of course that goes up and down whole pages.
I understand that pdfViewer already has shortcuts using the arrow keys, but that requires that the pdfViewer control be in focus. For our purposes, the user prefers to not lose focus on whatever control they are using, for example, typing in data from the pdf without losing focus of the textbox.
Is there any way that I can use the native function of the Up and Down keys with pdfViewer without requiring that the pdfViewer control be in focus? If I cannot do so, how may I replicate scrolling behavior with my own chosen shortcuts?
private void ScrollPDFViewer(Keys keyData)
{
if (keyData == (Keys.Up | Keys.Control))
{
this.radPdfViewer.PageUp();
// this.radPdfViewer.PdfViewerElement.Scroller.UpdateScrollValue();
}
else if (keyData == (Keys.Down | Keys.Control))
{
this.radPdfViewer.PageDown();
}
}