@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
|
@@ -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
|