Detecting combination keypresses (Control, Alt, + Keyboard Letter)

PHOTO EMBED

Mon May 04 2020 23:28:55 GMT+0000 (UTC)

Saved by @sid

document.addEventListener %28"keydown", function (zEvent%29 {
    if (zEvent.ctrlKey  &&  zEvent.altKey  &&  zEvent.key === "e") {  // case sensitive
        // DO YOUR STUFF HERE
    }
} );

                                
content_copyCOPY

https://stackoverflow.com/questions/37557990/detecting-combination-keypresses-control-alt-shift