Skip to content

Commit dc038d1

Browse files
authored
feat: compare page search package add esc keyboard event (#1333)
1 parent c1f33ac commit dc038d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)