From 8937354a9232d26e1f849c8a131e44574971150a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czyyzyykk=E2=80=9D?= Date: Wed, 25 Dec 2024 14:32:53 +0800 Subject: [PATCH] style: display logic --- front/terminal/src/components/FileBlock.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/terminal/src/components/FileBlock.vue b/front/terminal/src/components/FileBlock.vue index 96c55de..41e06d4 100644 --- a/front/terminal/src/components/FileBlock.vue +++ b/front/terminal/src/components/FileBlock.vue @@ -285,7 +285,7 @@ export default { else dirLevels.value = fullPath.substring(1,fullPath.length - 1).split('/'); }; const changeDirByLevel = (event,index) => { - // ctrl + // not ctrl if(!((props.os == "Windows" && event.ctrlKey) || ((props.os == "Mac" || props.os == "iOS") && event.metaKey))) return; event.preventDefault(); let aimDir = '/'; @@ -580,7 +580,9 @@ export default { } }; - const doShowDirInput = () => { + const doShowDirInput = (event) => { + // ctrl + if((props.os == "Windows" && event.ctrlKey) || ((props.os == "Mac" || props.os == "iOS") && event.metaKey)) return; isShowDirInput.value = true; setTimeout(() => { document.querySelector('#aimDirInput').focus();