4 ms·
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' && e
by kamikaz1k 6y ago
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-capture-a-macs-command-key-via-javascript https://stackoverflow.com/questions/3902635/how-does-one-cap...
- kahole 6y agoFixed