Skip to content

Instantly share code, notes, and snippets.

@adison
Last active December 28, 2015 18:29
Show Gist options
  • Save adison/7543152 to your computer and use it in GitHub Desktop.
Save adison/7543152 to your computer and use it in GitHub Desktop.
XML for keyremap4macbook, use for japanese keypad layout 1. chane kana key to option_R (把右邊的kana按鈕當做 option) 2. Use the right option and right shift to select the next input source(用左邊的英數按鈕切換輸入法)
<?xml version="1.0"?>
<root>
<item>
<name>用左邊的英數按鈕切換輸入法 - Switch Input Source by left en</name>
<appendix>Use the right option and right shift to select the next input source(用左邊的英數按鈕切換輸入法)</appendix>
<identifier>private.switch_next_input_source_by_jiseiuu</identifier>
<autogen>--KeyToKey-- KeyCode::JIS_EISUU, KeyCode::SPACE, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>把右邊的kana按鈕當做 option - change kana to option_r</name>
<appendix>chane kana key to option_R (把右邊的kana按鈕當做 option)</appendix>
<identifier>private.swap_kana_to_option_l</identifier>
<autogen>__KeyToKey__ KeyCode::JIS_KANA, KeyCode::OPTION_R </autogen>
</item>
<item>
<name>FN 特殊應用:FN + 底線 = control + 底線</name>
<appendix>FN 特殊應用:FN + 底線 = control + 底線</appendix>
<identifier>private.change_fn_underscore_to_control_underscore</identifier>
<autogen>__KeyToKey__ KeyCode::JIS_UNDERSCORE, ModifierFlag::FN,
KeyCode::JIS_UNDERSCORE, ModifierFlag::CONTROL_R </autogen>
</item>
<item>
<name>請勿使用!!純記錄fn測試用</name>
<appendix>不可使用!! Use the right FN as CONTROL (把右邊的 FN 當做 CONTROL )</appendix>
<identifier>private.swap_fn_to_control_r</identifier>
<autogen>__KeyToKey__ KeyCode::FN, KeyCode::CONTROL_R </autogen>
</item>
<replacementdef>
<replacementname>TEXT_SLASH</replacementname>
<replacementvalue>/</replacementvalue>
</replacementdef>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment