support for meta (command) key #199

This commit is contained in:
Jan Prochazka
2021-11-29 22:46:33 +01:00
parent 26b8ca79d4
commit fce3e3626a
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
let keyText = '';
if (e.ctrlKey) keyText += 'Ctrl+';
if (e.shiftKey) keyText += 'Shift+';
if (e.metaKey) keyText += 'Command+';
if (e.altKey) keyText += 'Alt+';
keyText += e.key;