mousetrap icon indicating copy to clipboard operation
mousetrap copied to clipboard

Can Mousetrap detect Windows key for the purposes of intercepting Window switching in Electron app?

Open alexbfree opened this issue 3 years ago • 0 comments

Hi, I have an Electron app in which I would like to intercept

  • Windows Key + R
  • Windows Key + E
  • Windows Key + F
  • Windows Key + D
  • Windows Key + M
  • Windows Key + Tab
  • Windows Key + X

so that I can block them to prevent a user from task switching during an experiment. Is it viable to use Mousetrap for this? Will that be the 'meta' key? Or is this impossible in Mousetrap? Any suggestions welcome! Thanks.

alexbfree avatar Oct 20 '20 14:10 alexbfree