Closed Bug 1726378 Opened 5 years ago Closed 4 years ago

Debugger keyboard shortcuts for prev/next in search bar are not discoverable

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox-esr78 wontfix, firefox-esr91 wontfix, firefox93 wontfix, firefox94 wontfix, firefox95 fix-optional)

RESOLVED DUPLICATE of bug 1746149
Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- wontfix
firefox93 --- wontfix
firefox94 --- wontfix
firefox95 --- fix-optional

People

(Reporter: jdescottes, Unassigned)

References

(Regression)

Details

(Keywords: regression)

STRs:

  • open a source in the debugger
  • search some text with several hits in the source
  • try to go to the next occurrence with the keyboard

The "search.again"and "search.againPrev" key shortcuts are using the macos-only meta "Cmd", so they can't be used on windows or linux.

https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/devtools/client/locales/en-US/debugger.properties#284-294

sourceSearch.search.again.key3=Cmd+G
sourceSearch.search.againPrev.key3=Cmd+Shift+G

This regressed when the shortcuts were updated in Bug 1488662. However fixing this would now conflict with another shortcut gotoLineModal which uses Ctrl+G. The original issue fixed by Bug 1488662 was that gotoLineModal was already using a shortcut for another feature.

But it seems that search.again and search.againPrev are redundant with "Enter" and "shift+Enter". Those shortcuts are not in the localization file, their behavior seems hardcoded at https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/devtools/client/debugger/src/components/Editor/SearchBar.js#179

I would suggest:

  • remove the macos only shortcuts sourceSearch.search.again.key3 & sourceSearch.search.againPrev.key3
  • show Enter & Shift+Enter in tooltips for the prev/next button of the debugger search bar
Severity: -- → S3
Flags: needinfo?(hmanilla)
Priority: -- → P3

Set release status flags based on info from the regressing bug 1488662

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Has Regression Range: --- → yes
Flags: needinfo?(hmanilla)
You need to log in before you can comment on or make changes to this bug.