Is there a way to scroll or page with keyboard shortcuts?

Hi,

a short question:
I'm using SfPdfViewer as a music sheet viewer for my app.
I would like to be able to scroll or page up / down with a keyboard (bluetooth or usb).
Is there any way to support that in SfPdfViewer?

Thank you in advance for your help
Arno

8 Replies

AV Ashokkumar Viswanathan Syncfusion Team March 30, 2020 12:57 PM UTC

Hi Arno,

Currently we are checking on this and we will update shortly.

Regards,
Ashok Kumar Viswanthan.



AV Ashokkumar Viswanathan Syncfusion Team March 30, 2020 02:22 PM UTC

Hi Arno,

Greetings from Syncfusion support,

Based on your update, we assume that your requirement is to scroll pages using keyboard in a desktop application. So, kindly confirm whether you want to achieve this requirement in Xamarin.Forms UWP. If the platform is different (iOS or Android) or our understanding of the requirement is different, please provide more details about this so that we can provide a more apt solution.

Regards,
Ashok Kumar Viswanathan.



DA Dr. Arno Pernozzoli April 6, 2020 01:39 PM UTC

Hi,

thanks for your answer, I'm coming back to this feature or solution request.
Within my App (iOS, Android and UWP) I included an SfPdfViewer as reader for music sheets.
I would like to use a bluetooth pedal, which basically acts as an hardware keyboard with PageUp and PageDown buttons within the app.
So basically it would be sufficient to support any hardware keyboard attached to the iPad to scroll or page through the SfPdfViewer using standard PageUp / PageDown or any of the cursor keys on the keyboard.

Is this possible within SfPdfViewer?

Thanks
Arno


AV Ashokkumar Viswanathan Syncfusion Team April 7, 2020 03:33 PM UTC

Hi Arno, 
 
Based on your previous update, we assume that you need provisions to scroll the pages when button pressed in the iPAD automatically . Can you please confirm us whether this is what you have mentioned as "any hardware keyboard attached to the iPad to scroll or page through the SfPdfViewer using standard PageUp / PageDown or any of the cursor keys on the keyboard " in your update? And also please share the keyboard type and specification details.  If our understanding is different from your requirement, could you please explain briefly about your requirement? It will be useful for us to investigate further on this and assist you with the better solution at the earliest. 
 
Regards, 
Ashok Kumar Viswanathan. 



DA Dr. Arno Pernozzoli April 7, 2020 03:54 PM UTC

Hi,

yes that‘s right, I would require automatic scrolling and paging (next/prev) by pressing the cursor or page up / page down keys on any hardware keyboard.
Any USB or bluetooth keyboard attached to an iPad or iPad Pro should work as well as the original Apple Smart Keyboards. The problem is related to the support of input devices in general within SfPdfViewer.

I tried capturing UIKeyCommand in iOS by providing my own view renderer, unfortunately SfPdfViewer doesn’t let pass keyboard events.
Any help would be appreciated!

Thanks in advance
Arno


AV Ashokkumar Viswanathan Syncfusion Team April 8, 2020 11:15 AM UTC

Hi Arno, 
 
Thanks for your update, 
 
At present, we do not have the support to scroll the PDF pages using the keyboard shortcuts in our SfPdfviewer control. Currently, we are analyzing the feasibility for the support and  we will update the further details on 16th April 2020. 
 
Regards, 
Ashok Kumar Viswanathan. 



AV Ashokkumar Viswanathan Syncfusion Team April 16, 2020 04:07 PM UTC

Hi Arno,   
 
We have analyzed the feasibility to access the keyboard shortcuts and it’s functionality. currently we are analyzing this requirement in our SfPdfviewer control to scroll the PDF pages\ in simple sample and we will update further details on 20th April 2020.  
 
  
Regards,  
Ashok Kumar Viswanathan


AV Ashokkumar Viswanathan Syncfusion Team April 20, 2020 04:03 PM UTC

Hi Arno, 
 
Thank you for your patience. 
  
On further analysis over the feasibility for scrolling the PDF page with keyboard shortcuts, currently there isn't any API to detect the root element for identifying the keyboard shortcut keys in UIScrollView and Transparent canvas. Hence, we could not provide support for this feature in our PDF Viewer control now. 
  
 Please let us know if you have any concerns. 
 
Regards, 
Ashok Kumar Viswanathan. 


Loader.
Up arrow icon