Add custom keyboard shortcut to any action in any app?

Ridiculous answer for three examples.

  • Close other Tabs.

Highlight the Tab you want to keep. Use a shortcut 'Move tab to left'
Control+Shift+PgUp Repeat until the tab goes first position.

  • Close Tabs to right.

Then select Tab to right Control+PgDn

Close Tab (Repeat this until the tabs are all closed) Control+W


  • Close Tabs to left.
  1. Select tab to left Control+PgUp

  2. Close Tab Control+W

Repeat 1 and 2 alternatively until all the tabs you want are closed.