1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 03:29:37 +02:00

Fix that the search box does not work to the Enter key on the soft keyboard of the mobile phone

This commit is contained in:
zhcode 2023-08-12 21:27:12 +08:00
parent 3c347c854c
commit e973da3f61

View file

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