Skip to content

Commit

Permalink
Update local-search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Sep 20, 2024
1 parent 5f44b5f commit aa65135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/third-party/search/local-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ document.addEventListener('DOMContentLoaded', () => {
onPopupClose();
});
window.addEventListener('keydown', event => {
if (event.ctrlKey && event.key === 'k') {
if ((event.ctrlKey || event.metaKey) && event.key === 'k') {
event.preventDefault();
document.body.classList.add('search-active');
setTimeout(() => input.focus(), 500);
Expand Down

0 comments on commit aa65135

Please sign in to comment.