SoFunction
Updated on 2025-03-01

Native js implements the acquisition of shift/ctrl/alt keys


= function(e){
alert(getKey(e));
};
function getKey(e){
var e = e || ;
var keys = [];

if(){
("shift key");
};
if(){
("ctrl key");
};
if(){
("alt key");
};
return keys;
};