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

153
Views
Javascript to trigger keyboard shortcut (CMD+SHIFT+4) on Mac

Had a look before asking, but could not find anything close that was recently answered.

New to Javascript; is it possible to create a function that can trigger when a button is clicked so the keyboard shortcut CMD+SHIFT+4 is 'pressed'.

TLDR; I am trying to create a button with a onClick event, that when pressed will allow users to screenshot to clipboard.

I will then have another button to 'press' CMD+V to paste the screenshot.

Any help is appreciated! :)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This is not possible from within the browser because it would create severe security issues if a website could "dictate" which keys are pressed. Imagine a website would open Finder and start deleting files...

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!