Skip to content

Instantly share code, notes, and snippets.

@hisaya
Created March 16, 2013 11:43
Show Gist options
  • Save hisaya/5176054 to your computer and use it in GitHub Desktop.
Save hisaya/5176054 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<root>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_UNICODE_HEX_INPUT</name>
<inputsourceid_equal>com.apple.keylayout.UnicodeHexInput</inputsourceid_equal>
</vkchangeinputsourcedef>
<item>
<name>unicode入力</name>
<item>
<name>Option_R to input Hex Code</name>
<appendix>右Optionを押しながらユニコード4桁を入力</appendix>
<identifier>private.option_r2input_hex</identifier>
<autogen>
__KeyToKey__
KeyCode::OPTION_R,
KeyCode::OPTION_R,
Option::KEYTOKEY_BEFORE_KEYDOWN, KeyCode::VK_CHANGE_INPUTSOURCE_UNICODE_HEX_INPUT, KeyCode::VK_WAIT_100MS,
Option::KEYTOKEY_AFTER_KEYUP, KeyCode::SPACE, ModifierFlag::COMMAND_L, KeyCode::VK_WAIT_100MS
</autogen>
</item>
<item>
<name>modifier_only</name>
<identifier>private.modifier_only_option_r_unicode</identifier>
<modifier_only>ModifierFlag::OPTION_R</modifier_only>
<autogen>
__KeyToKey__
KeyCode::OPTION_R,
KeyCode::OPTION_R,
Option::KEYTOKEY_BEFORE_KEYDOWN, KeyCode::VK_CHANGE_INPUTSOURCE_UNICODE_HEX_INPUT,
Option::KEYTOKEY_AFTER_KEYUP, KeyCode::SPACE, ModifierFlag::COMMAND_L,
</autogen>
<autogen>__KeyToKey__
KeyCode::E,
KeyCode::KEY_0,
KeyCode::KEY_3,
KeyCode::B,
KeyCode::KEY_5,
</autogen>
<autogen>__KeyToKey__
KeyCode::S, VK_SHIFT,
KeyCode::KEY_0,
KeyCode::KEY_1,
KeyCode::KEY_6,
KeyCode::KEY_0,
</autogen>
<autogen>__KeyToKey__
KeyCode::S,
KeyCode::KEY_0,
KeyCode::KEY_1,
KeyCode::KEY_6,
KeyCode::KEY_1,
</autogen>
</item>
<item>
<name>vk_config</name>
<identifier>private.vk_config_option_r_unicode</identifier>
<autogen>
__KeyToKey__
KeyCode::OPTION_R,
KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_private_option_r_unicode,
Option::KEYTOKEY_BEFORE_KEYDOWN, KeyCode::VK_CHANGE_INPUTSOURCE_UNICODE_HEX_INPUT,
Option::KEYTOKEY_AFTER_KEYUP, KeyCode::SPACE, ModifierFlag::COMMAND_L
</autogen>
</item>
<item hidden="true">
<name></name>
<identifier vk_config="true">notsave.private_option_r_unicode</identifier>
<autogen>__KeyToKey__
KeyCode::E, ModifierFlag::NONE,
KeyCode::KEY_0, ModifierFlag::OPTION_L,
KeyCode::KEY_3, ModifierFlag::OPTION_L,
KeyCode::B, ModifierFlag::OPTION_L,
KeyCode::KEY_5, ModifierFlag::OPTION_L,
</autogen>
<autogen>__KeyToKey__
KeyCode::S, VK_SHIFT | ModifierFlag::NONE,
KeyCode::KEY_0, ModifierFlag::OPTION_L,
KeyCode::KEY_1, ModifierFlag::OPTION_L,
KeyCode::KEY_6, ModifierFlag::OPTION_L,
KeyCode::KEY_0, ModifierFlag::OPTION_L,
</autogen>
<autogen>__KeyToKey__
KeyCode::S, ModifierFlag::NONE,
KeyCode::KEY_0, ModifierFlag::OPTION_L,
KeyCode::KEY_1, ModifierFlag::OPTION_L,
KeyCode::KEY_6, ModifierFlag::OPTION_L,
KeyCode::KEY_1, ModifierFlag::OPTION_L,
</autogen>
</item>
<item>
<name>one by one</name>
<identifier>private.one_by_one</identifier>
<autogen>__KeyToKey__
KeyCode::E, ModifierFlag::OPTION_R,
KeyCode::KEY_0, ModifierFlag::OPTION_L,
KeyCode::KEY_3, ModifierFlag::OPTION_L,
KeyCode::B, ModifierFlag::OPTION_L,
KeyCode::KEY_5, ModifierFlag::OPTION_L,
Option::KEYTOKEY_BEFORE_KEYDOWN, KeyCode::VK_CHANGE_INPUTSOURCE_UNICODE_HEX_INPUT, KeyCode::VK_WAIT_100MS,
Option::KEYTOKEY_AFTER_KEYUP, KeyCode::SPACE, ModifierFlag::COMMAND_L, KeyCode::VK_WAIT_100MS,
</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment