3 ms·
Can you give us Mac users some love and replace ctrl w/ command ? My muscle memory is giving me a hard time xD
by OzzyB 6y ago
Can you give us Mac users some love and replace ctrl w/ command ? My muscle memory is giving me a hard time xD
- kahole 6y agoThe source is very small and can be used both through the file:// and hosted http protocols. So you can easily make it do whatever you like. I could maybe expose some global variables to make it customizable, but I went for simplicity and smaller source instead.
- kamikaz1k 6y agoif 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
- bikeshaving 6y agoCtrl-Enter is the shortcut for inserting a soft newline for content-editables on Safari btw. You might want to consider supporting command-enter for this reason alone.