Search results

KeyboardCommandModel API in Vue PDF Viewer API component

Interface for a class KeyboardCommand

Properties

gesture

KeyGestureModel

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');

name

string

Defines the name of the command.