Skip to content

Commit

Permalink
style: display logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyzyykk committed Dec 25, 2024
1 parent 29d2ade commit 8937354
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions front/terminal/src/components/FileBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '/';
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8937354

Please sign in to comment.