Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
Clic derecho => Imprimir función de evento en Angular o JS

Quiero una función escrita para todo tipo de capturas de pantalla e impresiones. Ahora quiero escribir la función para hacer clic derecho e imprimir en Angular. Si alguien sabe cómo descifrar eso, hágamelo saber. El código de muestra es el siguiente

 document.addEventListener('keydown', (e) => { if (e.ctrlKey && e.key == 'p') { // console.log("tried to print") // alert('This section is not allowed to print or export to PDF'); this.prtScrEvent("Screenshot"); } }); //prtsc key press window.addEventListener("keyup", (e) => { if (e.keyCode == 44) { // console.log("printing tried"); // alert("The 'print screen' key is pressed"); this.prtScrEvent("Screenshot"); } }); async prtScrEvent(status) {....}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Vea si esto ayuda para hacer clic con el botón derecho.

 document.addEventListener('contextmenu', (e) =>{ // Your code })
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!