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

搜索 | 用户支持

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

详细了解

How to put autofocus on the search bar?

  • 7 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 VarHyid

more options

Hi, Everyone!

When I hit Ctrl+T to open a new tab, it always puts focus on the URL bar, but I'd prefer to have it on the search bar instead. Does anyone know how can I change it? I couldn't find anything relevant in about:config so far :(

Hi, Everyone! When I hit Ctrl+T to open a new tab, it always puts focus on the URL bar, but I'd prefer to have it on the search bar instead. Does anyone know how can I change it? I couldn't find anything relevant in about:config so far :(

所有回复 (7)

more options

I don't think there is a setting for that, although, I'm often surprised to hear about new settings in Firefox...

What do you think about this workflow:

  • Ctrl+e to focus the search bar
  • When you submit the search, the results page opens automatically in a new tab

This is the setting you would change for that:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste sea and pause while the list is filtered

(3) Double-click the browser.search.openintab preference to switch it from false to true

Note: after this change, the behavior of Alt+Enter flips. Normally, Alt+Enter in the search bar sends the search to a new tab, but with this setting, it sends the search to the same tab.

more options

Thanks for the tip, I don't think that would work for me, though, to be honest :(

But... wasn't putting focus on the search bar the default behavior in older versions of Firefox? Either I'm going crazy, but I could swear that whenever I opened a new tab, I could start typing into the search bar by default in the past and I'm not talking about having the URL bar work as a search, I'm familiar with that.

Anyway, sorry to hear that this can't be changed, although if someone does know about some obscure option that would do it, I'm all ears :)

more options

It wasn't the default, but maybe one of your add-ons had that as a feature? Maybe something comprehensive like Tab Mix Plus, Tab Utilities, etc.

more options

Strange. I'm not using many plugins. In fact... only NoScript and then this "Google.com (in English)" add-on for the search bar to prevent having Google show me the local results as it would without it.

Idk, very weird. If it wasn't like this, then I have no clue why I'm suddenly noticing this behavior, I've been using Firefox for over a decade.

more options
more options

jscher2000 was talking about extensions, not plugins.

Which "search bar"? The one to the right of the Location Bar (URL bar) on the Navigation Bar or the Search field in the New Tab page?

You can easily move the cursor via the Tab key on your keyboard. Once to the Search Bar and 3 'taps' on the Tab key to move the cursor to the Search field on the New Tab page.

more options

Cor-el, thanks a lot, I'll look into these :)

The-edmeister - I mean the only search bar there is - the one on the right. There's no search field in the new tab page as there's no page when a new tab is opened. Yes, I can hit TAB, I can hit Ctrl+E, but I just don't want to ;)