Skip to content

Instantly share code, notes, and snippets.

@keik
Last active August 29, 2015 14:04
Show Gist options
  • Save keik/52bfbfbd0f4115d3e626 to your computer and use it in GitHub Desktop.
Save keik/52bfbfbd0f4115d3e626 to your computer and use it in GitHub Desktop.
KeyRemap4MacBook script to enable to toggle IME with Shift + Space expect VM and RDP
<?xml version="1.0"?>
<root>
<inputsourcedef>
<name>GOOGLE_IME_JAPANESE_BASE</name>
<inputsourceid_prefix>com.google.inputmethod.Japanese.base</inputsourceid_prefix>
</inputsourcedef>
<inputsourcedef>
<name>GOOGLE_IME_JAPANESE_ROMAN</name>
<inputsourceid_prefix>com.google.inputmethod.Japanese.Roman</inputsourceid_prefix>
</inputsourcedef>
<appdef>
<appname>RDC</appname>
<equal>com.microsoft.rdc.mac</equal>
</appdef>
<item>
<name>Private</name>
<item>
<name>Shift+Space to KANA/EISUU(toggle)(except VM)</name>
<item>
<name>Shift+Space to KANA/EISUU(toggle)(except VM) 0</name>
<identifier>private.shift_space_to_kana_eisuu_toggle_except_vm</identifier>
<not>VIRTUALMACHINE,RDC</not>
<autogen>
__KeyToKey__
KeyCode::SPACE, ModifierFlag::SHIFT_L,
KeyCode::VK_JIS_TOGGLE_EISUU_KANA
</autogen>
</item>
<item>
<name>Shift+Space to KANA(except VM)</name>
<identifier>private.shift_space_to_kana_except_vm</identifier>
<inputsource_only>GOOGLE_IME_JAPANESE_ROMAN</inputsource_only>
<not>VIRTUALMACHINE,RDC</not>
<autogen>
__KeyToKey__
KeyCode::SPACE, ModifierFlag::SHIFT_L,
KeyCode::JIS_KANA
</autogen>
</item>
<item>
<name>Shift+Space to EISUU(except VM)</name>
<identifier>private.shift_space_to_eisuu_except_vm</identifier>
<inputsource_only>GOOGLE_IME_JAPANESE_BASE</inputsource_only>
<not>VIRTUALMACHINE,RDC</not>
<autogen>
__KeyToKey__
KeyCode::SPACE, ModifierFlag::SHIFT_L,
KeyCode::JIS_EISUU
</autogen>
</item>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment