We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
c
1 parent 1963a24 commit 097c8c4Copy full SHA for 097c8c4
app/components/AppHeader.vue
@@ -76,6 +76,9 @@ onKeyStroke(
76
onKeyStroke(
77
'c',
78
e => {
79
+ // Allow more specific handlers to take precedence
80
+ if (e.defaultPrevented) return
81
+
82
// Don't trigger if user is typing in an input
83
const target = e.target as HTMLElement
84
if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {
app/pages/[...package].vue
@@ -338,8 +338,9 @@ onKeyStroke(
338
{ dedupe: true },
339
)
340
341
-onKeyStroke('c', () => {
+onKeyStroke('c', e => {
342
if (pkg.value) {
343
+ e.preventDefault()
344
router.push({ path: '/compare', query: { packages: pkg.value.name } })
345
}
346
})
0 commit comments