diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 23f7065..955fbc7 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -198,8 +198,9 @@ const quillModalRef = ref(null) }, 5000) const mousetrap = inject('mousetrap') as any - function handleKeydown(){ - + function handleKeydown(e){ + + if(e.key=="c"||e.key=="C"){ const modal = unref(quillModalRef)! as any modal.closeModal() const modal1 = unref(shortcutModal)! as any @@ -208,7 +209,7 @@ const quillModalRef = ref(null) modal3.closeModal() const modal2 = unref(recycleModalRef)! as any modal2.closeModal() - + } } function closeModal() { showx.value = false