county-of-simcoe-gis/SimcoeCountyWebViewer

Typing - or + into the search box is zooming in or out.

Closed this issue · 4 comments

Typing - or + into the search box is zooming in or out.

@ghudolin I can prevent the Map keyboard events if the search box has focus. Are you ok with that?
The major issue I see is we'll likely have the search box focused by default for Tab ordering. What do you think?

Some more observations: When you start typing in the search box and item list appears (in the drop- down) a common behavior would be user to use up-down arrow keys to pick the item they are looking for instead of typing it all or using mouse to pick the item form drop down list. Currently up-down arrows works for both search box and map screen at the same time. Map can have focus by default and the Search box can be the second (get the focus after first tab press).

b678f6d

On startup, Map has focus (FYI it already had focus) , next tab is search box then burger button (enter to execute button). Rest of tab order to be determined but for now it goes to Layers tab and then each layer.

When Search Box has focus the map keyboard events are disabled.

@ghudolin let me know if you're ok with this and I'll close this issue.

Great! It works as expected!