Merge pull request #24 from ZiuChen/v1.1.4

fix: Mac下#13问题复现 #23
This commit is contained in:
ZiuChen 2022-08-19 18:17:55 +08:00 committed by GitHub
commit 3701380695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ onMounted(() => {
// //
document.addEventListener('keydown', (e) => { document.addEventListener('keydown', (e) => {
const { key, ctrlKey } = e const { key, ctrlKey, metaKey } = e
const isTab = key === 'Tab' const isTab = key === 'Tab'
const isSearch = const isSearch =
key === '/' || key === '/' ||
@ -143,7 +143,9 @@ onMounted(() => {
filterText.value = '' filterText.value = ''
e.stopPropagation() e.stopPropagation()
} }
} else if (ctrlKey) { } else if (ctrlKey || metaKey) {
// Ctrl
// utools
} else { } else {
window.focus() // window.focus() //
} }