New to Telerik UI for WinUI? Download free 30-day trial

Keyboard Support

The PdfViewer allows you to interact with the PDF document by using the keyboard.

The utilization of the predefined key bindings can entirely replace the usage of the mouse by providing shortcuts for navigation and editing.

Shortcuts

The PdfViewer supports the following keyboard shortcuts:

Hotkey Action
Ctrl + C Copy the content.
Ctrl + A Select all of the content.
Left Arrow Move the caret to the previous position.
Right Arrow Move the caret to the next position.
Ctrl + Left Arrow Move the caret to the previous word.
Ctrl + Right Arrow Move the caret to the next word.
Up Arrow Move the caret to the previous line.
Down Arrow Move the caret to the next line.
Home Move the caret to the line start.
End Move the caret to the line end.
Ctrl + Home Move the caret to the start of the document.
Ctrl + End Move the caret to the end of the document.
Shift + Arrow keys Select the text.

Adding Custom Key Binding

To add a custom key action, use the KeyBindings collection property of the RadPdfViewer.

Execute a Save As command on Ctrl+S

ICommand command = this.pdfViewer.CommandDescriptors.SaveAsCommandDescriptor.Command; 
var keyboardAccelerator = new KeyboardAcceleratorWithCommand(command) 
{ 
    Key = VirtualKey.S, 
    Modifiers = VirtualKeyModifiers.Control 
}; 
this.pdfViewer.KeyBindings.Add(keyboardAccelerator); 

See Also

In this article
Not finding the help you need?