Switch browser tabs with scroll wheel in Mac OS X using Karabiner
I have a Kensington Slimblade trackball and wanted an accessible way to switch tabs if my left hand is resting around home row and the right hand is on the trackball.
| Hotkey | Action |
|---|---|
| ⌘ Scroll Wheel Up | Switch to tab on the left |
| ⌘ Scroll Wheel Down | Switch to tab on the right |
Here's the configuration that needs to be added in
Karabiner's private.xml:
Scroll Wheel to Switch Tabs Back and Forward. (Command+{, Command+})
private.app_google_chrome_scroll_wheel_to_switch_tabs_back_forward
GOOGLE_CHROME
__ScrollWheelToKey__ ScrollWheel::UP, ModifierFlag::COMMAND_L,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_R | ModifierFlag::SHIFT_R
__ScrollWheelToKey__ ScrollWheel::DOWN, ModifierFlag::COMMAND_L,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_R | ModifierFlag::SHIFT_R