News for hackers. Stuff that matters.
Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by kamikaz1k on Wednesday November 18, 2020 @01:16PM (#25140239)
if it helps, all you need to do is add this listener to support the cmd key:

`document.addEventListener('keydown', (e) => (e.metaKey && e.code === 'Enter' && evaluate() && e.preventDefault()));`

The metaKey[1] is only accessible for keydown.

[1] https://stackoverflow.com/questions/3902635/how-does-one-cap...

Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad by kahole on Thursday November 19, 2020 @04:23AM (#25147705)
Fixed