為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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