mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-12 15:20:43 +08:00
🪄 兼容 macOS 上使用 Command + K 快捷键打开搜索框
This commit is contained in:
parent
fbc3937b84
commit
84dc786b28
@ -155,7 +155,7 @@ function openDetail(info) {
|
||||
}
|
||||
|
||||
function handleKeyDown(event) {
|
||||
if (event.ctrlKey && event.key === 'k') {
|
||||
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'k') {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
if (show.value) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user