This commit is contained in:
zhcode 2023-08-12 21:29:15 +08:00 committed by GitHub
commit 901507b9ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ export const SearchBar = (props: Props): JSX.Element => {
setLocalSearch(encodedURL);
}
if (e.code === 'Enter' || e.code === 'NumpadEnter') {
if (e.code === 'Enter' || e.code === 'NumpadEnter' || e.keyCode === 13) {
if (!primarySearch.prefix) {
// Prefix not found -> emit notification
createNotification({