fix(key) keys block

This commit is contained in:
coderaiser 2019-08-15 23:48:55 +03:00
parent b083de710b
commit f989880d48

View file

@ -57,15 +57,7 @@ function KeyProto() {
}
function listener(event) {
const {body} = document;
const {
keyCode,
target,
} = event;
// chrome double event pass
if (target != body)
return;
const {keyCode} = event;
const alt = event.altKey;
const ctrl = event.ctrlKey;