From 69d9f84777f6820f0a1aa3ec93e1f4eadebc373c Mon Sep 17 00:00:00 2001 From: hold-baby Date: Sat, 20 May 2023 02:28:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20ctrl+j/k=20?= =?UTF-8?q?=E4=BB=A3=E6=9B=BF=E4=B8=8A=E4=B8=8B=E6=96=B9=E5=90=91=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpns/ClipItemList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpns/ClipItemList.vue b/src/cpns/ClipItemList.vue index 8ec5d63..43534e4 100644 --- a/src/cpns/ClipItemList.vue +++ b/src/cpns/ClipItemList.vue @@ -199,8 +199,8 @@ watch( const keyDownCallBack = (e) => { const { key, ctrlKey, metaKey, altKey } = e - const isArrowUp = key === 'ArrowUp' - const isArrowDown = key === 'ArrowDown' + const isArrowUp = key === 'ArrowUp' || (ctrlKey && (key === 'K' || key === 'k')) + const isArrowDown = key === 'ArrowDown' || (ctrlKey && (key === 'J' || key === 'j')) const isEnter = key === 'Enter' const isCopy = (ctrlKey || metaKey) && (key === 'C' || key === 'c') const isNumber = parseInt(key) <= 9 && parseInt(key) >= 0