Closed Bug 1577924 Opened 5 years ago Closed 2 years ago

Urlbar should NOT allow switching between search engines using ctrl-up and down

Categories

(Firefox :: Address Bar, defect, P3)

defect
Points:
2

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: yoasif, Assigned: daisuke)

References

Details

(Keywords: papercut, Whiteboard: [snt-scrubbed][search-papercut])

Attachments

(1 file)

Enabled the megabar on my install, and found that ctrl-down arrow behavior is not what I expect based on my usage of the separate search box.

STR:

  1. Enable megabar
  2. Do Ctrl-l
  3. type in a query
  4. do ctrl-down arrow

What happens:

Nothing.

Expected result:

The first search engine suggested in "this time search with" should be selected, doing ctrl-down arrow again should select the next. Hitting enter should search with the selected search engine.

For some reason, the control-up arrow works as expected.

Hi Asif, what platform are you on? I'm running Nightly on macOS and the option-up/down shortcuts work to select a one-off search-engine in the search box, the old address bar, and the megabar.

Flags: needinfo?(yoasif)

I am on Linux right now. FWIW, the control-up and down feature is different from the option/alt shortcut (which does work in megabar and the separate search box) -- it switches the search engine sequentially without visually highlighting it.

The Ctrl-up works in the old addressbar, while Ctrl-down does not, just like megabar.

Oddly, I just tested it again, and ctrl-down actually does seem to work -- but it seems to step through items that are invisible, so it seems like it doesn't work.

STR:

  1. Have at least r enabled engines.
  2. enable megabar
  3. Do control-l
  4. type a query
  5. Do Control-up 4 times
  6. Do Control-down

The search engines are now highlighted and are selectable.

Flags: needinfo?(yoasif)

I think ctrl+up/down in the search bar changes the current engine, I don't think we want the same feature in the urlbar.
Though, the current support for ctrl+up/down in urlbar is broken, as you found. We should decide whether to stop supporting it, or making it just the same as alt+up/down.
As such, I'm marking as a defect the broken behavior, but we won't port the search bar functionality as-is.

Type: enhancement → defect
Priority: -- → P3
Summary: Megabar should allow switching between search engines using ctrl-up and down, like separate search box → Megabar should allow switching between search engines using ctrl-up and down

How exactly does this relate to the megabar design? Is this a regression? Is this not an issue with the megabar disabled?

Flags: needinfo?(yoasif)

Yeah, it's not a megabar blocker, this is a bug also with the normal design.

No longer blocks: urlbar-update-1
Flags: needinfo?(yoasif)
Summary: Megabar should allow switching between search engines using ctrl-up and down → Urlbar should allow switching between search engines using ctrl-up and down
Has Regression Range: --- → no
Has STR: --- → yes
OS: Unspecified → All
QA Contact: cristian.comorasu
Hardware: Unspecified → All
Version: unspecified → Trunk

this is not a regression, we never supported this behavior in the Address Bar. So we don't need special tracking for this

Severity: normal → S3
Points: --- → 2

On Windows, this Ctrl-Up/Ctrl-Down doesn't work the same as OSX.

In our bug scrub meeting, we came to the agreement that we think the solution from here should be that Ctrl-Up/Ctrl-Down should just act like up and down since Alt+Up/Alt+Down already has the behaviour of moving through all the shortcut buttons.

This would avoid having shortcuts having the same behaviour as existing shortcut buttons.

Whiteboard: [snt-triaged][search-papercut]
Summary: Urlbar should allow switching between search engines using ctrl-up and down → Urlbar should NOT allow switching between search engines using ctrl-up and down
Whiteboard: [snt-triaged][search-papercut] → [snt-scrubbed][search-papercut]
Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Attachment #9287003 - Attachment description: Bug 1577924: Avoid ctrl key when arrow down/up. → Bug 1577924: Ignore ctrl key when arrow down/up.
Attachment #9287003 - Attachment description: Bug 1577924: Ignore ctrl key when arrow down/up. → Bug 1577924: Ignore ctrl key when arrow/page down/up.
Pushed by dakatsuka.birchill@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3622cf8a8c84
Ignore ctrl key when arrow/page down/up. r=daleharvey
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Regressions: 1782594
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: