Skip to content

Commit

Permalink
feat: 增加 log
Browse files Browse the repository at this point in the history
  • Loading branch information
YasinChan committed Jul 19, 2023
1 parent 643e8b8 commit c1b9adc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/key/KeyWrap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ const handleKeyDown = (e: KeyboardEvent) => {
}
if (!state.keysPressed[code]) {
console.log('----------', 'handleKeyDown', e, '----------cyy log');
state.keysPressed[code] = true;
state.currentCode = code;
}
};
const handleKeyUp = (e: KeyboardEvent) => {
console.log('----------', 'handleKeyUp', e, '----------cyy log');
state.keysPressed[e.code] = false;
state.currentCode = '';
};
Expand Down

0 comments on commit c1b9adc

Please sign in to comment.