Why the windows keycode doesn't work in this superscript code (on edge chromium with Tampermonkey)?
(function () {
document.addEventListener('keydown', function (e) {
// 67=C 91=windows key (or metaKey) https://keycode.info/
if (e.keyCode == 67 && e.keyCode == 91) {
alert('detected')
}
}, false);
})();
I tried several letters with the windows key and using e.metaKey
but without success.
ps: this not a duplicate of Can all keycode events be recognized by a user-script Jquery because I don't use keypress