MacのCmd+Shift+かなで中国語入力

Karabinerのprivate.xmlの設定。


<?xml version="1.0"?>
<root>

  <vkchangeinputsourcedef>
    <name>KeyCode::VK_CHANGE_INPUTSOURCE_CHINESE</name>
    <inputsourceid_equal>com.apple.inputmethod.SCIM.ITABC</inputsourceid_equal>
  </vkchangeinputsourcedef>
  <item>
    <name>Change input source to Chinese by left cmd key + left shift key + KANA</name>
    <identifier>private.change_input_source_to_chinese</identifier>
    <autogen>
      __KeyToKey__
      KeyCode::JIS_KANA, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L,
      KeyCode::VK_CHANGE_INPUTSOURCE_CHINESE
    </autogen>
  </item>

  <vkchangeinputsourcedef>
    <name>KeyCode::VK_CHANGE_INPUTSOURCE_KOREAN</name>
    <inputsourceid_equal>com.apple.inputmethod.Korean.GongjinCheongRomaja</inputsourceid_equal>
  </vkchangeinputsourcedef>
  <item>
    <name>Change input source to Korean by left cmd key + KANA</name>
    <identifier>private.change_input_source_to_korean</identifier>
    <autogen>
      __KeyToKey__
      KeyCode::JIS_KANA, ModifierFlag::COMMAND_L,
      KeyCode::VK_CHANGE_INPUTSOURCE_KOREAN
    </autogen>
  </item>

</root>

ちなみにCmd+かなは韓国語に割り当てている。

LINEで送る
Pocket

コメントを残す

*