2012年3月23日 星期五

單鍵切換輸入法

今天看到一篇文章,提到了KeyRemap4Macbook
這是一套可以自訂幾乎所有mac按鍵的套件
安裝之後(需要重開機),可以在偏好設定中找到設定

然後,根據
http://www.think-in-g.net/ghawk/blog/2011/11/os-x-mappging-a-single-key-to-select-input-source/comment-page-1/#comment-3500
的作法,就可以達成使用一顆按鈕切換輸入法的功能
不過該網頁的寫法在V7.5中不能用,請換成以下內容

<?xml version="1.0"?>
<root>
<item>
<name>Switch Input Source</name>
<appendix>Use the right Option key to select the next input source</appendix>
<identifier>private.switch_input_source_with_right_option</identifier>
<autogen>--KeyToKey-- KeyCode::OPTION_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Switch Input Source</name>
<appendix>Use the right Command key to select the next input source</appendix>
<identifier>private.switch_next_input_source_with_right_command</identifier>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::SPACE, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L</autogen>
</item>
</root>

沒有留言: