opensnowmap.org icon indicating copy to clipboard operation
opensnowmap.org copied to clipboard

Search improvement on http://www.opensnowmap.org

Open ldmpub opened this issue 3 years ago • 2 comments

Hi,

Request

To gain time, I suggest to add "default focus" into the search box when user starts a search.

Current behavior

See video attached (keyboard entries are displayed in the bottom left corner)

https://user-images.githubusercontent.com/1452146/150656513-c3fea7cf-47e2-47d4-9ea4-73976a0409e6.mp4

Future behavior

When user clicks on the search icon 🔎 in the top bar, he can directly enter his text in the search area (without having to click, prior to his inputs, in this area). I don't see any drawbacks to this new behavior because there is no other possible action than search. You could have a look at how it works at google.com ...

ldmpub avatar Jan 22 '22 22:01 ldmpub

Thanks again for this extensive request. I completely agree with you when you're on desktop. However, when you're browsing with a mobile phone, giving the focus to the input field opens up the on-screen keyboard. This is less than ideal because on a small device it can hide the search menu before it can be seen, leaving the user completely lost. I have to dig into it to give the proper behaviour on both worlds.

yvecai avatar Jan 23 '22 06:01 yvecai

Ok, I see: you need to detect the device (or maybe the screen resolution?).

ldmpub avatar Jan 24 '22 22:01 ldmpub