Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

I want to use Control-W and Control-T to close and open tabs in OS X

  • 4 відповіді
  • 4 мають цю проблему
  • 18 переглядів
  • Остання відповідь від andrewgho

more options

On Windows, you can use Ctrl-W and Ctrl-T to close and open tabs. On OS X, you have to use Cmd-W and Cmd-T instead (this bothers me because it is asymmetric with using Ctrl-Tab and Shift-Ctrl-Tab to navigate between tabs). Ctrl-W and Ctrl-T don't seem to do anything by default, so it would be nice if both Cmd or Ctrl could be used as a modifier for closing and opening tabs. Is there a way to accomplish this?

I tried using the System Preferences > Keyboard > Keyboard Shortcuts tab to set Ctrl-W and Ctrl-T to operate the Close Tab and New Tab menu options, but, this does not work; when I press those key combinations, the File menu briefly flashes, but nothing else seems to happen.

Thanks in advance for your help!

On Windows, you can use Ctrl-W and Ctrl-T to close and open tabs. On OS X, you have to use Cmd-W and Cmd-T instead (this bothers me because it is asymmetric with using Ctrl-Tab and Shift-Ctrl-Tab to navigate between tabs). Ctrl-W and Ctrl-T don't seem to do anything by default, so it would be nice if both Cmd or Ctrl could be used as a modifier for closing and opening tabs. Is there a way to accomplish this? I tried using the System Preferences > Keyboard > Keyboard Shortcuts tab to set Ctrl-W and Ctrl-T to operate the Close Tab and New Tab menu options, but, this does not work; when I press those key combinations, the File menu briefly flashes, but nothing else seems to happen. Thanks in advance for your help!

Усі відповіді (4)

more options
more options

Firefox does not have an option to set custom keyboard shortcuts. Maybe there is an Add-on that can help

more options

Thank you very much for that pointer. It sure appears to be exactly the extension I need!

However, I found that the same behavior happens with that extension as when I use System Preferences > Keyboard Shortcuts to remap ^W to Close Tab and ^T to New Tab: the File menu flashes briefly when I press those key combinations, but no tab is closed or created. In addition, with this extension, the original Cmd-W and Cmd-T keybindings are totally overridden.

It seems like Firefox is somehow swallowing those key combinations. Not sure how or why.

more options

I have finally found a solution to this problem. The latest (currently not yet released) version of KeyRemap4MacBook (http://pqrs.org/macosx/keyremap4macbook/) includes options to turn on exactly this behavior. Here's a link to the version that includes this new functionality:

http://pqrs.org/macosx/keyremap4macbook/files/KeyRemap4MacBook-6.99.33.pkg.zip

If this solves the problem for you, I encourage you to make a donation to the author via the links on his website (he kindly added this feature at my request, with a one day turnaround time, wow!).

I still feel it would be good if Firefox had this functionality natively or via an extension, but, at least there is a workaround in the meantime.