I have researched and checked multiple questions and various answers but cannot find a specific answer.
I have a HTML button that has the event window.print() attached to it at the moment. But what im after is for it to show a print preview. We only use firefox at work so creating a button for us to use which triggers multiple keypresses and brings up the print preview option. In Firefox, the keyboard short-cut for print preview is ALT + F + V or using the below function
18 + 70 + 86
$(window).keydown(function(e) {
console.log(e.which);
//18 ALT
//70 f
//86
//^^ Print Preview
});
I have tried to adapt the following questions answer but to no avail. Way to trigger multiple keypress and hold events in jQuery
Any help would be greatly appreciated.