Translate

2016/02/01

MACでマウスのボタンを使う。Chromeのタブ移動する。

Karabinerを使う。

http://tanweb.net/2014/07/03/1388/

Chromeのタブを移動するには

Chromeの拡張で、KeyConfigを入れる。
タブの移動を、M-Tab(Option + Tab)にする。
Karabinerのprivate.xmlをM-Tabを使うように修正。

<?xml version="1.0"?>
<root>
    <list>
        <item>
            <name>MouseButton 4 and 5</name>
            <identifier>remap.mouse_button4_5</identifier>
            <autogen>
                --PointingButtonToKey-- PointingButton::BUTTON5,
                KeyCode::TAB, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L
            </autogen>
            <autogen>
                --PointingButtonToKey-- PointingButton::BUTTON4,
                KeyCode::TAB, ModifierFlag::OPTION_L
            </autogen>
        </item>
    </list>
</root>


その他、参考。

https://pqrs.org/osx/karabiner/document.html.ja#preferences
http://qiita.com/altitude3190/items/bbef986ff8dd288b2641

[2016/2/1 追記]

あんまり面倒くさいことは必要ないことがわかった。
まず、Chromeのタブは、Control+Tabで移動できる。なので、これをKarabinerで設定すれば良いだけ。

0 件のコメント:

コメントを投稿