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