Skip to content

Commit 5b7e3f8

Browse files
committed
feat: compare page search package add esc keyboard event
1 parent 2801235 commit 5b7e3f8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/components/Compare/PackageSelector.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ function handleKeydown(e: KeyboardEvent) {
8989
} else if (hasMatchInPackages) {
9090
addPackage(inputValueTrim)
9191
}
92+
} else if (e.key === 'Escape') {
93+
inputValue.value = ''
9294
}
9395
}
9496

0 commit comments

Comments
 (0)