@sugarat/theme 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -186,7 +186,12 @@ const searchModal = ref(false)
186
186
  const searchWords = ref('')
187
187
  const docs = useArticles()
188
188
 
189
- const keys = useMagicKeys()
189
+ const keys = useMagicKeys({
190
+ passive: false,
191
+ onEventFired(e) {
192
+ if (e.ctrlKey && e.key === 'k' && e.type === 'keydown') e.preventDefault()
193
+ }
194
+ })
190
195
  const CmdK = keys['Meta+K']
191
196
  const CtrlK = keys['Ctrl+K']
192
197
  // eslint-disable-next-line dot-notation, prefer-destructuring