Defines the collection of commands and the corresponding key gestures.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
let viewer: PdfViewer = new PdfViewer();
viewer.commandManager = {
keyboardCommand: [{
name: 'customCopy',
gesture: {
pdfKeys: PdfKeys.G,
modifierKeys: ModifierKeys.Shift | ModifierKeys.Alt
}
},
{
name: 'customPaste',
gesture: {
pdfKeys: PdfKeys.H,
modifierKeys: ModifierKeys.Shift | ModifierKeys.Alt
}
}]
};
viewer.appendTo("#pdfViewer");
Defines the multiple command names with the corresponding command objects.
Defaults to []