Skip to content

How to add a custom shortcut key

ithinc edited this page Mar 19, 2014 · 7 revisions

Save the following settings to a text file, and import it via "TU Options > Settings > Import...".

F2/F3/F4 for Previous/Next/Close Tab:

pref("extensions.tabutils.shortcut.key_prevTab", true);
pref("extensions.tabutils.shortcut.key_prevTab.keycode", "VK_F2");
pref("extensions.tabutils.shortcut.key_prevTab.modifiers", "");
pref("extensions.tabutils.shortcut.key_prevTab.command", "Browser:PrevTab");

pref("extensions.tabutils.shortcut.key_nextTab", true);
pref("extensions.tabutils.shortcut.key_nextTab.keycode", "VK_F3");
pref("extensions.tabutils.shortcut.key_nextTab.modifiers", "");
pref("extensions.tabutils.shortcut.key_nextTab.command", "Browser:NextTab");
pref("extensions.tabutils.shortcut.key_nextTab.insertbefore", "key_findAgain");

pref("extensions.tabutils.shortcut.key_closeTab", true);
pref("extensions.tabutils.shortcut.key_closeTab.keycode", "VK_F4");
pref("extensions.tabutils.shortcut.key_closeTab.modifiers", "");
pref("extensions.tabutils.shortcut.key_closeTab.command", "cmd_close");

"New Panorama Group": Ctrl+Q

pref("extensions.tabutils.shortcut.key_newGroup", true);
pref("extensions.tabutils.shortcut.key_newGroup.key", "Q");
pref("extensions.tabutils.shortcut.key_newGroup.modifiers", "accel");
pref("extensions.tabutils.shortcut.key_newGroup.command", "cmd_newGroup");

"Unstack Tab": Ctrl+Alt+U

pref("extensions.tabutils.shortcut.key_unstackTab", true);
pref("extensions.tabutils.shortcut.key_unstackTab.key", "U");
pref("extensions.tabutils.shortcut.key_unstackTab.modifiers", "accel,alt");
pref("extensions.tabutils.shortcut.key_unstackTab.oncommand", "gBrowser.unstackTabs([gBrowser.mCurrentTab]);");

Note: Keyboard shortcuts can be customized using the Customizable Shortcuts extension.