Skip to content

Send route query again when pressing enter #95

Closed

Description

@easbar

Continuing the discussion from here: #88 (comment)

Which behaviour do we want in this case? Simply try to use the text-input's content as coordinate? Only if it has changed since the last time? Or should the Enter -> Search thing be a more global thing? Also, should the search be triggered only in case an input box is highlighted or again at any time?

Yes, I would trigger the routing request if Enter is pressed while the cursor is in one of the input boxes and either do geocoding with nominatim or, if it is a GPS coordinate use it as is (compare this comment: #54 (comment)). It should not matter whether anything changed since last time, simply send the request or is this somehow complicated? I do not think the Enter key should be global, it should be enough to have it while the focus is in one of the input boxes.

Activity

  1. added this to the 0.3 milestone on Jun 11, 2021
  2. modified the milestones: 0.3, 0.4 on Oct 29, 2021
  3. karussell commented on Nov 3, 2021

    @karussell
    Member

    Currently this does not work if auto complete box is not yet shown.

    (It always works for coordinates)

  4. modified the milestones: 0.4, 0.5 on Nov 3, 2021
  5. modified the milestones: 0.5, 0.3 on Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions