This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Ty Leppek
Posted Apr 05 - Read on Facebook

I'm using an event listener and the keydown property to propagate keyboard events thanks to this snippet http://codepen.io/ezh/details/Xbxgjv/ (Thanks Ezzat Chamudi) but I can't get framer to pass the left command key '91' on a mac, it passes the right one '93' no problem.
Would metaKey solve my problem? I can't seem to get that to work either?

5 Comments

George Kedenburg III

well this was a weird one! i fixed it by wrapping `document` instead of `window` with the event listener

George Kedenburg III

Ty Leppek

Two answers in less than a week. You are on your game. Though this one gladly for me, was less obvious.

George Kedenburg III

also if youre curious on how to make your code a little more efficient, check out switch statements: http://coffeescript.org/#switch

Ty Leppek

Yeah this has been quick and painfully dirty exploration, need to add some more efficient layer manipulation to my shorthand. Thanks for the ref.

Read the entire post on Facebook