How to trigger a keypress event manually for a combination like Ctrl+P in angular/javascript?
I have tried using the window.print() method. But unfortunately, I have some css styles to be applied for the document to be printed in the @media print{} in css. The same style gets applied to the parent page as the one in print window.
Issue doesnot occur when clicking ctrl+p. The print window has seperate styles applied, different from the original page in this case.