Skip to content

Commit d04f0d2

Browse files
fix: only trigger when action bar is visible
1 parent 5e926ab commit d04f0d2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/components/Package/ActionBar.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ onKeyStroke(
1010
return isKeyWithoutModifiers(e, shortcutKey) && (!isEditableElement(target) || isCheckbox)
1111
},
1212
e => {
13+
if (selectedPackages.value.length === 0) {
14+
return
15+
}
16+
1317
e.preventDefault()
1418
actionBar.value?.focus()
1519
},

0 commit comments

Comments
 (0)