Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Control-N / Control-P keyboard navigation of location bar results list?

  • 3 个回答
  • 1 人有此问题
  • 14 次查看
  • 最后回复者为 rosston

more options

Do folks know of a Firefox setting I've overlooked, or an Extension, that would enable the desired behaviour?

-- User context

The Firefox location bar has focus, and the results list is showing, and I press Control-N or Control-P

-- Expected behaviour

The next or previous item in the results list is selected, without changing the cursor position within the location bar.

-- Actual behaviour

The results list selection is unchanged, and the cursor position within the location bar goes to the end (Control-N) or beginning (Control-P) of the line.

-- Background

On MacOS, Control-N and Control-P are Emacs-inspired text-navigation keyboard shortcuts for moving the cursor to the next and previous lines (https://support.apple.com/en-us/HT201236).

This concept is also extended to navigating lists, in most Apple-developed MacOS applications, and many third-party applications which follow MacOS interaction conventions.

It's true that, when there's a single line of text, as in the location bar, or, for example, in a single line of text in TextEdit.app, the cursor just moves to the beginning or end of the line. However, since the results list is effectively sharing focus, I think it makes more sense to navigate that list (like the up / down arrow keys do). It's still possible to go the the beginning or end of the location bar line of text with Fn–Left/Right Arrow or Control-A/E.

Chrome and Safari both support navigating the results list with both arrow keys and Control-N Control-P.

I don't see any current bindings for these keys on https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly?redirectlocale=en-US&redirectslug=Keyboard+shortcuts.

Thanks

Do folks know of a Firefox setting I've overlooked, or an Extension, that would enable the desired behaviour? -- User context The Firefox location bar has focus, and the results list is showing, and I press Control-N or Control-P -- Expected behaviour The next or previous item in the results list is selected, without changing the cursor position within the location bar. -- Actual behaviour The results list selection is unchanged, and the cursor position within the location bar goes to the end (Control-N) or beginning (Control-P) of the line. -- Background On MacOS, Control-N and Control-P are Emacs-inspired text-navigation keyboard shortcuts for moving the cursor to the next and previous lines (https://support.apple.com/en-us/HT201236). This concept is also extended to navigating lists, in most Apple-developed MacOS applications, and many third-party applications which follow MacOS interaction conventions. It's true that, when there's a single line of text, as in the location bar, or, for example, in a single line of text in TextEdit.app, the cursor just moves to the beginning or end of the line. However, since the results list is effectively sharing focus, I think it makes more sense to navigate that list (like the up / down arrow keys do). It's still possible to go the the beginning or end of the location bar line of text with Fn–Left/Right Arrow or Control-A/E. Chrome and Safari both support navigating the results list with both arrow keys and Control-N Control-P. I don't see any current bindings for these keys on https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly?redirectlocale=en-US&redirectslug=Keyboard+shortcuts. Thanks

由reentim于修改

被采纳的解决方案

Hi, No sorry keyboard short cuts are baked in . https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly At this time due to security there is only this 1 that seems to have a lot of functions and of course none you want. https://addons.mozilla.org/en-US/firefox/addon/shortkeys/

You can find several that will work on websites but not within the browser itself.

Please let us know if this solved your issue or if need further assistance.

定位到答案原位置 👍 1

所有回复 (3)

more options

选择的解决方案

Hi, No sorry keyboard short cuts are baked in . https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly At this time due to security there is only this 1 that seems to have a lot of functions and of course none you want. https://addons.mozilla.org/en-US/firefox/addon/shortkeys/

You can find several that will work on websites but not within the browser itself.

Please let us know if this solved your issue or if need further assistance.

more options

Ah that's too bad. This is the main thing stopping me from making Firefox my default browser. Bug filed here: https://bugzilla.mozilla.org/show_bug.cgi?id=1466436

Thanks anyway

more options

A fix for this has landed in Firefox 64 (currently accessible via Developer Edition) by way of this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1389221