mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(key) keys block
This commit is contained in:
parent
b083de710b
commit
f989880d48
1 changed files with 1 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue