shortcut key to detach a tab in firefox (move tab to new window)

Here's how to create your own keyboard shortcut to Detach a Firefox Tab to a New Window:

  1. Install the Keyconfig addon

  2. Open the Keyconfig Preferences by pressing Ctrl+Shift+F12 (On Mac it may be ⌘ Cmd+Shift+F12)

  3. Click Add a new key at the bottom left of the keyconfig window.

  4. Replace the contents of the Name field with the name of this command:

    Detach Tab to New Window
    
  5. Paste the following code into the /* CODE */ field:

    window.openDialog("chrome://browser/content/browser.xul","_blank","chrome,dialog=no,all",gBrowser.mCurrentTab);
    
  6. Click OK.

  7. Your new command will be marked as <Disabled> This means you need to set a keyboard shortcut for this command. Make sure your command is selected from the list of commands. Click inside the field at the bottom left of the window. It will highlight the contents and whatever keys you hit next will be entered inside that box. For example, you might use Ctrl+Alt+N. Or if you're a fan of Vim you might use Shift+Y.

  8. Click Apply and then click Close to close the keyconfig window. Test your keyboard shortcut by loading a window with at least 2 tabs and then use your new keyboard shortcut. The current tab should detach itself and form a new window.


With Vimium-FF, it can be done by pressing W, i.e. shift + w.


I found the best way to do this without any third party software. Basically, this is @exic solution with only 2 steps instead of 6 :

Ctrl + L : Focus address bar

Shift + Enter : Open url in new window

This of course has the same con as @exic of loading a new page instead of taking the current one out.