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