Closed Bug 1573459 Opened 5 years ago Closed 4 years ago

Arrow keys should move the caret in the urlbar when a one-off search button is selected, not the one-off selection

Categories

(Firefox :: Address Bar, defect, P5)

68 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1632318

People

(Reporter: lukas, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

  1. Paste really long URL into URL bar
  2. Press any arrow key to navigate the URL*/make some changes*
  3. Press enter to go to url
  • I made changes in the URL part (behind the first "/"); changing the host focuses the suggestion that appears.

Actual results:

  • At step 2: Those "action buttons" for search engines and preferences in the "url bar dropdown" get selected.
  • Typing in text or clicking in the url bar does not unfocus those so when step three is executed the selected action button will be "clicked".

Expected results:

  • I should be able to move the cursor in the URL bar with the arrow keys
  • "Arrow Up" should go to the beginning of the URL instead of selecting some action buttons
  • Clicking in the URL bar after selecting/focusing one of the action buttons should unfocus said action button and focus the url (so that pressing enter executes "go to url")

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Address Bar

It's true that once a search button becomes selected, pressing left/right/up/down will move the selection among the search buttons instead of moving the caret within the input. I agree that we might want to reconsider having left/right move the caret instead.

It's also true that when a search button is selected and you click in the input, the button remains selected.

But when a search button is selected and I start typing again, the button becomes unselected, so I can't reproduce that part of this report.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5

(In reply to lukas from comment #0)

Expected results:

  • I should be able to move the cursor in the URL bar with the arrow keys
  • "Arrow Up" should go to the beginning of the URL instead of selecting some action buttons

I'll leave this bug open for the two points above.

  • Clicking in the URL bar after selecting/focusing one of the action buttons should unfocus said action button and focus the url (so that pressing enter executes "go to url")

This is similar to bug 1615149. Not quite the same but it could cover this too. I would mark this a dupe of that if not for the first two points.

Severity: normal → S4
See Also: → 1615149
Summary: URL bar behaves inintuitive → Arrow keys should move the caret in the urlbar when a one-off search button is selected, not the one-off selection
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.