Skip to content

Use Tab to select adresses - #112

Merged
karussell merged 2 commits into
masterfrom
54_tab_search
Jul 20, 2021
Merged

karussell merged 2 commits into
masterfrom
54_tab_search

Conversation

@Janekdererste

Copy link
Copy Markdown
Collaborator

fix #54 .

This works slightly different than described in #54 now. I kept the tab order as is, so that the delete buttons next to the input fields are still accessible via tab. Please let me know how this works for you.

http://gh-maps-react.s3-website.eu-central-1.amazonaws.com/54_tab_search

… delete button

Autofocus the first input box on load
@Janekdererste
Janekdererste requested a review from karussell June 17, 2021 11:14
@karussell

karussell commented Jun 17, 2021 •

Copy link
Copy Markdown
Member

Nice, this works for me 👍

A minor glitch is when you type fast and press "tab" before the suggestions appear - then the location won't resolve (this is fine, when we are able to later press ENTER) and the suggestion list doesn't disappear (this is a bug I think)

@karussell

Copy link
Copy Markdown
Member

This should also "somehow" :) work when we enter coordinates: #114

@Janekdererste

Copy link
Copy Markdown
Collaborator Author

A minor glitch is when you type fast and press "tab" before the suggestions appear

So, I set this to cancel geocoding requests when the input looses focus before the geocoding results are displayed. I think this is what is possible as long as we don't do geocoding requests "on the fly". Let me know if this is ready to merge or whether I missunderstood @karussell

@karussell

Copy link
Copy Markdown
Member

Yes, thank you. This is what I meant. (With #114 and #95 this will be the/my expected behaviour.)

@karussell
karussell merged commit 46a3677 into master Jul 20, 2021
@karussell
karussell deleted the 54_tab_search branch July 20, 2021 11:04
ZeroGxMax pushed a commit to minhhpkp/graphhopper-maps that referenced this pull request Nov 12, 2024
* Select geocoding results on tab and jump to the next input box or the delete button
Autofocus the first input box on load

* cancel geocoding when input looses focus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

leaving input with tab should work (keyboard navigation)

2 participants