From c1b9adcdf4613ad75557510443e3507029ec9193 Mon Sep 17 00:00:00 2001 From: YasinChan Date: Wed, 19 Jul 2023 21:44:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/key/KeyWrap.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/key/KeyWrap.vue b/src/components/key/KeyWrap.vue index c378b44..fd1fc4b 100644 --- a/src/components/key/KeyWrap.vue +++ b/src/components/key/KeyWrap.vue @@ -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 = ''; };