Interface for a class KeyboardCommand
Defines a combination of keys and key modifiers, on recognition of which the command will be executed.
<div id='pdfViewer'></div>
let pdfViewer: PdfViewer = new PdfViewer({
...
commandManager:{
commands:[{
name:'customCopy',
gesture:{
key:Keys.G, keyModifiers:KeyModifiers.Shift | KeyModifiers.Alt
}
}]
},
...
});
pdfViewer.appendTo('#pdfViewer');
string
Defines the name of the command.