I have this problem in which I will accidentally close a pinned tab with cmd+w.

Is there a way to disable closing a tab with the keyboard shortcut and to only make it so that you have to right click + close in order to close the tab?

I'm using Macos But like an answer for Windows, MacOs and Linux.

  • Not natively, you'll need an extension such as ShortKeys. Jun 28 at 8:54
  • What OS? On Mac you can do it in the keyboard control panel. See superuser.com/questions/1282076/…
    – Tetsujin
    Jun 28 at 8:58
  • @Tetsujin Does this allow for disabling cmd/ctrl+w for pinned tabs only, whilst allowing it for non-pinned tabs? Jun 28 at 9:02
  • Only if there's a specific menu command for each. Look at the answer, it fully explains how the structure works.
    – Tetsujin
    Jun 28 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.