<commit_before><?xml version="1.0"?>
<root>
  <item>
    <name>For PC Users</name>
    <item>
      <name>Change PC Application Key (Menu Key)</name>
      <item>
        <name>Application Key to CapsLock</name>
        <identifier>remap.pc_application2capslock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::CAPSLOCK</autogen>
      </item>
      <item>
        <name>Application Key to Command_L</name>
        <identifier>remap.pc_application2commandL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Command_L</name>
        <appendix>(+ Application Key to Control_L in Terminal, Screen Sharing, MacVim,</appendix>
        <appendix>RDC, Emacs, X11, VNC)</appendix>
        <identifier>remap.pc_application2commandL_controlL</identifier>
        <block>
          <only>TERMINAL,SCREEN_SHARING, VI, REMOTEDESKTOPCONNECTION, EMACS, X11, VNC</only>
          <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::CONTROL_L</autogen>
        </block>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Command_R</name>
        <identifier>remap.pc_application2commandR_comamndLspace</identifier>
        <appendix>(+ When you type Application only, send Command_L+Space)</appendix>
        <autogen>__KeyOverlaidModifier__ KeyCode::PC_APPLICATION, KeyCode::COMMAND_R, KeyCode::SPACE, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Control_L</name>
        <identifier>remap.pc_application2controlL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::CONTROL_L</autogen>
      </item>
      <item>
        <name>Application Key to Control_L</name>
        <appendix>(+ When you type Application Key only, send CapsLock)</appendix>
        <!-- Note: identifier has "jis_" prefix for compatibility. -->
        <identifier>remap.jis_pc_application2controlL_capslock</identifier>
        <autogen>__KeyOverlaidModifier__ KeyCode::PC_APPLICATION, KeyCode::CONTROL_L, KeyCode::CAPSLOCK</autogen>
      </item>
      <item>
        <name>Application Key to Command+Option</name>
        <identifier>remap.pc_application_to_command_option</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_L, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Control+Option</name>
        <identifier>remap.pc_application_to_control_option</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_L, ModifierFlag::CONTROL_L</autogen>
      </item>
      <item>
        <name>Application Key to Fn</name>
        <identifier>remap.pc_application2fn</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::FN</autogen>
      </item>
      <item>
        <name>Application Key to Fn</name>
        <appendix>(+ When you type Application only, send Fn_Lock)</appendix>
        <identifier>remap.pc_application2fn_fnlock</identifier>
        <autogen>__KeyOverlaidModifier__ KeyCode::PC_APPLICATION, KeyCode::FN, KeyCode::VK_LOCK_FN</autogen>
      </item>
      <item>
        <name>Application Key to Option_L</name>
        <identifier>remap.pc_application2optionL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_L</autogen>
      </item>
      <item>
        <name>Application Key to Option_R (right option key)</name>
        <identifier>remap.pc_application2optionR</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_R</autogen>
      </item>
      <item>
        <name>Application Key to Shift_L</name>
        <identifier>remap.pc_application2shiftL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::SHIFT_L</autogen>
      </item>
      <item>
        <name>Application Key to Command_L+Backquote</name>
        <identifier>remap.pc_application2commandLbackquote</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Delete</name>
        <identifier>remap.pc_application2delete</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::DELETE</autogen>
      </item>
      <item>
        <name>Application Key to Delete</name>
        <appendix>(+ Command+Application Key to CapsLock)</appendix>
        <identifier>remap.pc_application2delete_capslock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CAPSLOCK</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::DELETE</autogen>
      </item>
      <item>
        <name>Application Key to Escape</name>
        <identifier>remap.pc_application2escape</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::ESCAPE</autogen>
      </item>
      <item>
        <name>Application Key to Escape</name>
        <appendix>(+ Shift+Application Key to CapsLock)</appendix>
        <identifier>remap.pc_application2escape_capslock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT, KeyCode::CAPSLOCK</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::ESCAPE</autogen>
      </item>
      <item>
        <name>Application Key to Eject</name>
        <identifier>remap.pc_application2eject</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, ConsumerKeyCode::EJECT</autogen>
      </item>
      <item>
        <name>Application Key to Expose All</name>
        <identifier>remap.pc_application2exposeALL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::EXPOSE_ALL</autogen>
      </item>
      <item>
        <name>Application Key to F9</name>
        <identifier>remap.pc_application2f9</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::F9</autogen>
      </item>
      <item>
        <name>Application Key to F11</name>
        <identifier>remap.pc_application2f11</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::F11</autogen>
      </item>
      <item>
        <name>Application Key to Minimize (Send command-m)</name>
        <identifier>remap.menu_to_minimize</identifier>
        <autogen>
          __KeyToKey__
          KeyCode::PC_APPLICATION, ModifierFlag::NONE,
          KeyCode::M, ModifierFlag::COMMAND_R,
        </autogen>
      </item>
      <item>
        <name>Application Key to Command_L+Space</name>
        <identifier>remap.pc_application2commandLspace</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::SPACE, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Option_L+Space</name>
        <identifier>remap.pc_application2optionLspace</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::SPACE, ModifierFlag::OPTION_L</autogen>
      </item>
      <item>
        <name>Application Key to Underscore(Shift_L+Minus)</name>
        <identifier>remap.pc_application2underscore</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::MINUS, ModifierFlag::SHIFT_L</autogen>
      </item>
      <item>
        <name>Application Key to LeftClick</name>
        <identifier>remap.pc_application2leftclick</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, PointingButton::LEFT</autogen>
      </item>
      <item>
        <name>Application Key to RightClick</name>
        <identifier>remap.pc_application2rightclick</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, PointingButton::RIGHT</autogen>
      </item>
    </item>
    <item>
      <name>Change PC Insert Key</name>
      <item>
        <name>Insert Key to Control_R</name>
        <identifier>remap.pc_insert2controlR</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::CONTROL_R</autogen>
      </item>
      <item>
        <name>Insert Key to Option_L+Insert</name>
        <identifier>remap.pc_insert2optionLinsert</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::PC_INSERT, ModifierFlag::OPTION_L</autogen>
      </item>
      <item>
        <name>Insert Key to PageDown</name>
        <identifier>remap.pc_insert2pagedown</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::PAGEDOWN</autogen>
      </item>
      <item>
        <name>Insert Key to Tab</name>
        <identifier>remap.pc_insert2tab</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::TAB</autogen>
      </item>
    </item>
    <item>
      <name>Change PC NumLock Key</name>
      <item>
        <name>NumLock Key to F11</name>
        <identifier>remap.pc_numlock2f11</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_KEYPAD_NUMLOCK, KeyCode::F11</autogen>
      </item>
      <item>
        <name>Disable NumLock Key</name>
        <identifier>remap.drop_numlock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_KEYPAD_NUMLOCK, KeyCode::VK_NONE</autogen>
      </item>
      <item>
        <name>Disable NumLock Key (except in TeamViewer.app)</name>
        <not>TEAMVIEWER</not>
        <identifier>remap.drop_numlock_ex_teamviewer</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_KEYPAD_NUMLOCK, KeyCode::VK_NONE</autogen>
      </item>
    </item>
    <item>
      <name>Change PC PrintScreen Key, ScrollLock Key, Pause/Break Key</name>
      <item>
        <name>Right-hand function key block to system volume controls</name>
        <appendix>* PrintScreen to Volume Down</appendix>
        <appendix>* ScrollLock to Volume Up</appendix>
        <appendix>* Pause/Break to Volume Mute</appendix>
        <identifier>remap.pc_printscreen_scrolllock_pause_to_volume_controls</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, ConsumerKeyCode::VOLUME_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_SCROLLLOCK,  ConsumerKeyCode::VOLUME_UP</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_PAUSE,       ConsumerKeyCode::VOLUME_MUTE</autogen>
      </item>
      <item>
        <name>PrintScreen Key to Eject</name>
        <identifier>remap.pc_printscreen2eject</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, ConsumerKeyCode::EJECT</autogen>
      </item>
      <item>
        <name>PrintScreen Key to F12</name>
        <identifier>remap.pc_printscreen2f12</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, KeyCode::F12</autogen>
      </item>
      <item>
        <name>ScrollLock Key to F13</name>
        <identifier>remap.pc_scrolllock2f13</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_SCROLLLOCK, KeyCode::F13</autogen>
      </item>
      <item>
        <name>Pause/Break Key to Eject</name>
        <identifier>remap.pc_pause2eject</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PAUSE, ConsumerKeyCode::EJECT</autogen>
      </item>
      <item>
        <name>Pause/Break Key to Power</name>
        <identifier>remap.pc_pause2power</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PAUSE, KeyCode::VK_IOHIDPOSTEVENT_NX_POWER_KEY</autogen>
      </item>
    </item>
    <item>
      <name>Use KeyPad as Arrow (PC Style NumLock)</name>
      <item>
        <name>Enable KeyPad as Arrow</name>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier vk_config="true">remap.keypadnumlock</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <include path="snippets/keypadnumlock.xml" />
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <include path="snippets/keypadnumlock.xml" />
        </block>
      </item>
      <item>
        <name>Use Clear Key to toggle "KeyPad as Arrow"</name>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier>option.keypadnumlock_togglekey_clear</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock</autogen>
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock</autogen>
        </block>
      </item>
      <item>
        <name>Enable KeyPad as Arrow</name>
        <appendix>(With PC Style Home/End/PageUp/PageDown)</appendix>
        <appendix>(- KeyPad_7 to Command_L+Left-Arrow)</appendix>
        <appendix>(- KeyPad_1 to Command_L+Right-Arrow)</appendix>
        <appendix>(- KeyPad_9 to Option_L+PageUp)</appendix>
        <appendix>(- KeyPad_3 to Option_L+PageDown)</appendix>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier vk_config="true">remap.keypadnumlock_pclikehomeend</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <include path="snippets/keypadnumlock_pclikehomeend.xml" />
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <!-- We use normal Home/End/PageUp/PageDown in VM -->
          <include path="snippets/keypadnumlock.xml" />
        </block>
      </item>
      <item>
        <name>Use Clear Key to toggle "KeyPad as Arrow (PC Style Home/End/PageUp/PageDown)"</name>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier>option.keypadnumlock_pclikehomeend_togglekey_clear</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock_pclikehomeend</autogen>
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock_pclikehomeend</autogen>
        </block>
      </item>
      <item>
        <name>[Option] Use "KeyPad as Arrow" in virtual machine, RDC</name>
        <identifier>option.keypadnumlock_vm</identifier>
      </item>
    </item>
    <item>
      <name>Use PC Style KeyPad Layout on Apple KeyPad</name>
      <appendix>(Change = to /)</appendix>
      <appendix>(Change / to *)</appendix>
      <appendix>(Change * to -)</appendix>
      <appendix>(Change - to +)</appendix>
      <appendix>(Change + to =)</appendix>
      <identifier>remap.pc_style_keypad</identifier>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_EQUAL,    KeyCode::KEYPAD_SLASH</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_SLASH,    KeyCode::KEYPAD_MULTIPLY</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_MULTIPLY, KeyCode::KEYPAD_MINUS</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_MINUS,    KeyCode::KEYPAD_PLUS</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_PLUS,     KeyCode::KEYPAD_EQUAL</autogen>
    </item>
    <item>
      <name>Use PC Style Home/End</name>
      <appendix>(Change Home to Control+A)</appendix>
      <appendix>(Change End to Control+E)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikehomeend_emacs</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <include path="snippets/pcstyle_homeend_ignore_apps.xml" />
      <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
      <block>
        <!-- Control+Shift+A/E do not work in springpad<EMAIL>. -->
        <!-- Therefore we need to change Shift+Home/End to Command+Shift+Left/Right. -->
        <only>SAFARI,FIREFOX,THUNDERBIRD,GOOGLE_CHROME,OPERA</only>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
          KeyCode::CURSOR_LEFT,   ModifierFlag::COMMAND_L | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
          KeyCode::CURSOR_RIGHT,  ModifierFlag::COMMAND_L | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT</autogen>
      </block>
      <autogen>__KeyToKey__ FROMKEYCODE_HOME,             KeyCode::A, ModifierFlag::CONTROL_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_END,              KeyCode::E, ModifierFlag::CONTROL_L</autogen>
    </item>
    <item>
      <name>Use PC Style Home/End #2</name>
      <appendix>(Change Home to Command+Left)</appendix>
      <appendix>(Change End to Command+Right)</appendix>
      <appendix>(+ Change Home to Control+A in Emacs,Terminal,X11,Eclipse)</appendix>
      <appendix>(+ Change End to Control+E in Emacs,Terminal,X11,Eclipse)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikehomeend</identifier>
      <include path="snippets/pcstyle_homeend_ignore_apps.xml" />
      <block>
        <only>EMACS, TERMINAL, X11, ECLIPSE</only>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, KeyCode::A, ModifierFlag::CONTROL_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  KeyCode::E, ModifierFlag::CONTROL_L</autogen>
      </block>
      <block>
        <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
        {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME,             KeyCode::CURSOR_LEFT,  ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,              KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L</autogen>
      </block>
    </item>
    <item>
      <name>Use PC Style PageUp/PageDown</name>
      <appendix>(behave like Option+PageUp/PageDown)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikepageupdown_except_emacs</identifier>
      <not>
        {{ PC_STYLE_BINDINGS_IGNORE_APPS }},
        <!-- except for Microsoft applications which already have this built-in -->
        WORD, EXCEL, POWERPOINT, OUTLOOK
      </not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ FROMKEYCODE_PAGEUP,   ModifierFlag::NONE, KeyCode::PAGEUP, ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_PAGEDOWN, ModifierFlag::NONE, KeyCode::PAGEDOWN, ModifierFlag::OPTION_L</autogen>
    </item>
    <item>
      <name>Use PC Style Control+Up/Down/Left/Right</name>
      <appendix>(Change Control+Arrow to Option+Arrow)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikecontrolarrow_except_vm</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::CURSOR_UP,     MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_UP,    ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ KeyCode::CURSOR_DOWN,   MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_DOWN,  ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ KeyCode::CURSOR_LEFT,   MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_LEFT,  ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ KeyCode::CURSOR_RIGHT,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen>
    </item>
    <item>
      <name>Use PC Style Copy/Paste</name>
      <appendix>(Control+C to Command_L+C)</appendix>
      <appendix>(Control+V to Command_L+V)</appendix>
      <appendix>(Control+X to Command_L+X)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pc_style_copy_paste</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>
        __KeyToKey__
        KeyCode::C, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        KeyCode::C, ModifierFlag::COMMAND_L,
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::V, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        KeyCode::V, ModifierFlag::COMMAND_L,
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::X, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        KeyCode::X, ModifierFlag::COMMAND_L,
      </autogen>
    </item>
    <item>
      <name>Use PC Style Copy/Paste #2</name>
      <appendix>(Swap Control+C and Command_L+C)</appendix>
      <appendix>(Control+V to Command_L+V)</appendix>
      <appendix>(Control+X to Command_L+X)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.copy_paste_winstyle2</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::C, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::C, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::V, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::V, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::X, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::X, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::C, ModifierFlag::COMMAND_L, KeyCode::C, ModifierFlag::CONTROL_L</autogen>
    </item>
    <item>
      <name>Use PC Style Copy/Paste #3</name>
      <appendix>(Control+Insert to Command_L+C)</appendix>
      <appendix>(Shift+Insert to Command_L+V)</appendix>
      <appendix>(Shift+Delete to Command_L+X) (Note: "Delete" is Mac's Forward Delete)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <!-- Note: identifier name (*_2) is valid for compatibility. -->
      <identifier>remap.copy_paste_winstyle_2</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::PC_INSERT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::C, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::PC_INSERT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT, KeyCode::V, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::FORWARD_DELETE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT, KeyCode::X, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Copy-Paste #4</name>
      <appendix>Change Command+Insert to Command+C</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.copy_paste_winstyle_4</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::PC_INSERT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::C, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND</autogen>
    </item>
    <item>
      <name>Use PC Style Undo</name>
      <appendix>(Control+Z to Command_L+Z)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.undo_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::Z, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::Z, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Select All</name>
      <appendix>(Control+A to Command_L+A)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.select_all_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::A, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::A, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Save</name>
      <appendix>(Control+S to Command_L+S)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.save_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::S, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::S, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style New</name>
      <appendix>(Control+N to Command_L+N)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.new_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::N, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::N, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style New Tab</name>
      <appendix>(Control+T to Command_L+T)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.copy_paste_winstyle_new_tab</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::T, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::T, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style New Tab #2 (Browser only)</name>
      <appendix>(Control+T to Command_L+T)</appendix>
      <appendix></appendix>
      <appendix>(Only in Firefox, Google Chrome, Opera, Safari)</appendix>
      <identifier>remap.copy_paste_winstyle_new_browser_tab</identifier>
      <only>FIREFOX, GOOGLE_CHROME, OPERA, SAFARI</only>
      <autogen>__KeyToKey__ KeyCode::T, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::T, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Find</name>
      <appendix>(Control+F to Command_L+F)</appendix>
      <appendix>(Control+G to Command_L+G)</appendix>
      <appendix>(F3 to Command_L+G)</appendix>
      <appendix>(Control+F3 to Shift+Command_L+G)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix><commit_msg>Add PC style open in new tab<commit_after><?xml version="1.0"?>
<root>
  <item>
    <name>For PC Users</name>
    <item>
      <name>Change PC Application Key (Menu Key)</name>
      <item>
        <name>Application Key to CapsLock</name>
        <identifier>remap.pc_application2capslock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::CAPSLOCK</autogen>
      </item>
      <item>
        <name>Application Key to Command_L</name>
        <identifier>remap.pc_application2commandL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Command_L</name>
        <appendix>(+ Application Key to Control_L in Terminal, Screen Sharing, MacVim,</appendix>
        <appendix>RDC, Emacs, X11, VNC)</appendix>
        <identifier>remap.pc_application2commandL_controlL</identifier>
        <block>
          <only>TERMINAL,SCREEN_SHARING, VI, REMOTEDESKTOPCONNECTION, EMACS, X11, VNC</only>
          <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::CONTROL_L</autogen>
        </block>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Command_R</name>
        <identifier>remap.pc_application2commandR_comamndLspace</identifier>
        <appendix>(+ When you type Application only, send Command_L+Space)</appendix>
        <autogen>__KeyOverlaidModifier__ KeyCode::PC_APPLICATION, KeyCode::COMMAND_R, KeyCode::SPACE, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Control_L</name>
        <identifier>remap.pc_application2controlL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::CONTROL_L</autogen>
      </item>
      <item>
        <name>Application Key to Control_L</name>
        <appendix>(+ When you type Application Key only, send CapsLock)</appendix>
        <!-- Note: identifier has "jis_" prefix for compatibility. -->
        <identifier>remap.jis_pc_application2controlL_capslock</identifier>
        <autogen>__KeyOverlaidModifier__ KeyCode::PC_APPLICATION, KeyCode::CONTROL_L, KeyCode::CAPSLOCK</autogen>
      </item>
      <item>
        <name>Application Key to Command+Option</name>
        <identifier>remap.pc_application_to_command_option</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_L, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Control+Option</name>
        <identifier>remap.pc_application_to_control_option</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_L, ModifierFlag::CONTROL_L</autogen>
      </item>
      <item>
        <name>Application Key to Fn</name>
        <identifier>remap.pc_application2fn</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::FN</autogen>
      </item>
      <item>
        <name>Application Key to Fn</name>
        <appendix>(+ When you type Application only, send Fn_Lock)</appendix>
        <identifier>remap.pc_application2fn_fnlock</identifier>
        <autogen>__KeyOverlaidModifier__ KeyCode::PC_APPLICATION, KeyCode::FN, KeyCode::VK_LOCK_FN</autogen>
      </item>
      <item>
        <name>Application Key to Option_L</name>
        <identifier>remap.pc_application2optionL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_L</autogen>
      </item>
      <item>
        <name>Application Key to Option_R (right option key)</name>
        <identifier>remap.pc_application2optionR</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_R</autogen>
      </item>
      <item>
        <name>Application Key to Shift_L</name>
        <identifier>remap.pc_application2shiftL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::SHIFT_L</autogen>
      </item>
      <item>
        <name>Application Key to Command_L+Backquote</name>
        <identifier>remap.pc_application2commandLbackquote</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Delete</name>
        <identifier>remap.pc_application2delete</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::DELETE</autogen>
      </item>
      <item>
        <name>Application Key to Delete</name>
        <appendix>(+ Command+Application Key to CapsLock)</appendix>
        <identifier>remap.pc_application2delete_capslock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CAPSLOCK</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::DELETE</autogen>
      </item>
      <item>
        <name>Application Key to Escape</name>
        <identifier>remap.pc_application2escape</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::ESCAPE</autogen>
      </item>
      <item>
        <name>Application Key to Escape</name>
        <appendix>(+ Shift+Application Key to CapsLock)</appendix>
        <identifier>remap.pc_application2escape_capslock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT, KeyCode::CAPSLOCK</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::ESCAPE</autogen>
      </item>
      <item>
        <name>Application Key to Eject</name>
        <identifier>remap.pc_application2eject</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, ConsumerKeyCode::EJECT</autogen>
      </item>
      <item>
        <name>Application Key to Expose All</name>
        <identifier>remap.pc_application2exposeALL</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::EXPOSE_ALL</autogen>
      </item>
      <item>
        <name>Application Key to F9</name>
        <identifier>remap.pc_application2f9</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::F9</autogen>
      </item>
      <item>
        <name>Application Key to F11</name>
        <identifier>remap.pc_application2f11</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::F11</autogen>
      </item>
      <item>
        <name>Application Key to Minimize (Send command-m)</name>
        <identifier>remap.menu_to_minimize</identifier>
        <autogen>
          __KeyToKey__
          KeyCode::PC_APPLICATION, ModifierFlag::NONE,
          KeyCode::M, ModifierFlag::COMMAND_R,
        </autogen>
      </item>
      <item>
        <name>Application Key to Command_L+Space</name>
        <identifier>remap.pc_application2commandLspace</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::SPACE, ModifierFlag::COMMAND_L</autogen>
      </item>
      <item>
        <name>Application Key to Option_L+Space</name>
        <identifier>remap.pc_application2optionLspace</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::SPACE, ModifierFlag::OPTION_L</autogen>
      </item>
      <item>
        <name>Application Key to Underscore(Shift_L+Minus)</name>
        <identifier>remap.pc_application2underscore</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::MINUS, ModifierFlag::SHIFT_L</autogen>
      </item>
      <item>
        <name>Application Key to LeftClick</name>
        <identifier>remap.pc_application2leftclick</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, PointingButton::LEFT</autogen>
      </item>
      <item>
        <name>Application Key to RightClick</name>
        <identifier>remap.pc_application2rightclick</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_APPLICATION, PointingButton::RIGHT</autogen>
      </item>
    </item>
    <item>
      <name>Change PC Insert Key</name>
      <item>
        <name>Insert Key to Control_R</name>
        <identifier>remap.pc_insert2controlR</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::CONTROL_R</autogen>
      </item>
      <item>
        <name>Insert Key to Option_L+Insert</name>
        <identifier>remap.pc_insert2optionLinsert</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::PC_INSERT, ModifierFlag::OPTION_L</autogen>
      </item>
      <item>
        <name>Insert Key to PageDown</name>
        <identifier>remap.pc_insert2pagedown</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::PAGEDOWN</autogen>
      </item>
      <item>
        <name>Insert Key to Tab</name>
        <identifier>remap.pc_insert2tab</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_INSERT, KeyCode::TAB</autogen>
      </item>
    </item>
    <item>
      <name>Change PC NumLock Key</name>
      <item>
        <name>NumLock Key to F11</name>
        <identifier>remap.pc_numlock2f11</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_KEYPAD_NUMLOCK, KeyCode::F11</autogen>
      </item>
      <item>
        <name>Disable NumLock Key</name>
        <identifier>remap.drop_numlock</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_KEYPAD_NUMLOCK, KeyCode::VK_NONE</autogen>
      </item>
      <item>
        <name>Disable NumLock Key (except in TeamViewer.app)</name>
        <not>TEAMVIEWER</not>
        <identifier>remap.drop_numlock_ex_teamviewer</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_KEYPAD_NUMLOCK, KeyCode::VK_NONE</autogen>
      </item>
    </item>
    <item>
      <name>Change PC PrintScreen Key, ScrollLock Key, Pause/Break Key</name>
      <item>
        <name>Right-hand function key block to system volume controls</name>
        <appendix>* PrintScreen to Volume Down</appendix>
        <appendix>* ScrollLock to Volume Up</appendix>
        <appendix>* Pause/Break to Volume Mute</appendix>
        <identifier>remap.pc_printscreen_scrolllock_pause_to_volume_controls</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, ConsumerKeyCode::VOLUME_DOWN</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_SCROLLLOCK,  ConsumerKeyCode::VOLUME_UP</autogen>
        <autogen>__KeyToKey__ KeyCode::PC_PAUSE,       ConsumerKeyCode::VOLUME_MUTE</autogen>
      </item>
      <item>
        <name>PrintScreen Key to Eject</name>
        <identifier>remap.pc_printscreen2eject</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, ConsumerKeyCode::EJECT</autogen>
      </item>
      <item>
        <name>PrintScreen Key to F12</name>
        <identifier>remap.pc_printscreen2f12</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PRINTSCREEN, KeyCode::F12</autogen>
      </item>
      <item>
        <name>ScrollLock Key to F13</name>
        <identifier>remap.pc_scrolllock2f13</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_SCROLLLOCK, KeyCode::F13</autogen>
      </item>
      <item>
        <name>Pause/Break Key to Eject</name>
        <identifier>remap.pc_pause2eject</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PAUSE, ConsumerKeyCode::EJECT</autogen>
      </item>
      <item>
        <name>Pause/Break Key to Power</name>
        <identifier>remap.pc_pause2power</identifier>
        <autogen>__KeyToKey__ KeyCode::PC_PAUSE, KeyCode::VK_IOHIDPOSTEVENT_NX_POWER_KEY</autogen>
      </item>
    </item>
    <item>
      <name>Use KeyPad as Arrow (PC Style NumLock)</name>
      <item>
        <name>Enable KeyPad as Arrow</name>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier vk_config="true">remap.keypadnumlock</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <include path="snippets/keypadnumlock.xml" />
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <include path="snippets/keypadnumlock.xml" />
        </block>
      </item>
      <item>
        <name>Use Clear Key to toggle "KeyPad as Arrow"</name>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier>option.keypadnumlock_togglekey_clear</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock</autogen>
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock</autogen>
        </block>
      </item>
      <item>
        <name>Enable KeyPad as Arrow</name>
        <appendix>(With PC Style Home/End/PageUp/PageDown)</appendix>
        <appendix>(- KeyPad_7 to Command_L+Left-Arrow)</appendix>
        <appendix>(- KeyPad_1 to Command_L+Right-Arrow)</appendix>
        <appendix>(- KeyPad_9 to Option_L+PageUp)</appendix>
        <appendix>(- KeyPad_3 to Option_L+PageDown)</appendix>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier vk_config="true">remap.keypadnumlock_pclikehomeend</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <include path="snippets/keypadnumlock_pclikehomeend.xml" />
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <!-- We use normal Home/End/PageUp/PageDown in VM -->
          <include path="snippets/keypadnumlock.xml" />
        </block>
      </item>
      <item>
        <name>Use Clear Key to toggle "KeyPad as Arrow (PC Style Home/End/PageUp/PageDown)"</name>
        <appendix>(except virtual machine, RDC)</appendix>
        <identifier>option.keypadnumlock_pclikehomeend_togglekey_clear</identifier>
        <block>
          <not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock_pclikehomeend</autogen>
        </block>
        <block>
          <config_only>option.keypadnumlock_vm</config_only>
          <only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
          <autogen>__KeyToKey__ KeyCode::KEYPAD_CLEAR, KeyCode::VK_CONFIG_TOGGLE_remap_keypadnumlock_pclikehomeend</autogen>
        </block>
      </item>
      <item>
        <name>[Option] Use "KeyPad as Arrow" in virtual machine, RDC</name>
        <identifier>option.keypadnumlock_vm</identifier>
      </item>
    </item>
    <item>
      <name>Use PC Style KeyPad Layout on Apple KeyPad</name>
      <appendix>(Change = to /)</appendix>
      <appendix>(Change / to *)</appendix>
      <appendix>(Change * to -)</appendix>
      <appendix>(Change - to +)</appendix>
      <appendix>(Change + to =)</appendix>
      <identifier>remap.pc_style_keypad</identifier>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_EQUAL,    KeyCode::KEYPAD_SLASH</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_SLASH,    KeyCode::KEYPAD_MULTIPLY</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_MULTIPLY, KeyCode::KEYPAD_MINUS</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_MINUS,    KeyCode::KEYPAD_PLUS</autogen>
      <autogen>__KeyToKey__ KeyCode::KEYPAD_PLUS,     KeyCode::KEYPAD_EQUAL</autogen>
    </item>
    <item>
      <name>Use PC Style Home/End</name>
      <appendix>(Change Home to Control+A)</appendix>
      <appendix>(Change End to Control+E)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikehomeend_emacs</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <include path="snippets/pcstyle_homeend_ignore_apps.xml" />
      <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
      <block>
        <!-- Control+Shift+A/E do not work in springpadit.com. -->
        <!-- Therefore we need to change Shift+Home/End to Command+Shift+Left/Right. -->
        <only>SAFARI,FIREFOX,THUNDERBIRD,GOOGLE_CHROME,OPERA</only>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
          KeyCode::CURSOR_LEFT,   ModifierFlag::COMMAND_L | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT | ModifierFlag::NONE,
          KeyCode::CURSOR_RIGHT,  ModifierFlag::COMMAND_L | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT</autogen>
      </block>
      <autogen>__KeyToKey__ FROMKEYCODE_HOME,             KeyCode::A, ModifierFlag::CONTROL_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_END,              KeyCode::E, ModifierFlag::CONTROL_L</autogen>
    </item>
    <item>
      <name>Use PC Style Home/End #2</name>
      <appendix>(Change Home to Command+Left)</appendix>
      <appendix>(Change End to Command+Right)</appendix>
      <appendix>(+ Change Home to Control+A in Emacs,Terminal,X11,Eclipse)</appendix>
      <appendix>(+ Change End to Control+E in Emacs,Terminal,X11,Eclipse)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikehomeend</identifier>
      <include path="snippets/pcstyle_homeend_ignore_apps.xml" />
      <block>
        <only>EMACS, TERMINAL, X11, ECLIPSE</only>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, KeyCode::A, ModifierFlag::CONTROL_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  KeyCode::E, ModifierFlag::CONTROL_L</autogen>
      </block>
      <block>
        <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
        {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_UP,    ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_DOWN,  ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_HOME,             KeyCode::CURSOR_LEFT,  ModifierFlag::COMMAND_L</autogen>
        <autogen>__KeyToKey__ FROMKEYCODE_END,              KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L</autogen>
      </block>
    </item>
    <item>
      <name>Use PC Style PageUp/PageDown</name>
      <appendix>(behave like Option+PageUp/PageDown)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikepageupdown_except_emacs</identifier>
      <not>
        {{ PC_STYLE_BINDINGS_IGNORE_APPS }},
        <!-- except for Microsoft applications which already have this built-in -->
        WORD, EXCEL, POWERPOINT, OUTLOOK
      </not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ FROMKEYCODE_PAGEUP,   ModifierFlag::NONE, KeyCode::PAGEUP, ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ FROMKEYCODE_PAGEDOWN, ModifierFlag::NONE, KeyCode::PAGEDOWN, ModifierFlag::OPTION_L</autogen>
    </item>
    <item>
      <name>Use PC Style Control+Up/Down/Left/Right</name>
      <appendix>(Change Control+Arrow to Option+Arrow)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pclikecontrolarrow_except_vm</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::CURSOR_UP,     MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_UP,    ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ KeyCode::CURSOR_DOWN,   MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_DOWN,  ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ KeyCode::CURSOR_LEFT,   MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_LEFT,  ModifierFlag::OPTION_L</autogen>
      <autogen>__KeyToKey__ KeyCode::CURSOR_RIGHT,  MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen>
    </item>
    <item>
      <name>Use PC Style Copy/Paste</name>
      <appendix>(Control+C to Command_L+C)</appendix>
      <appendix>(Control+V to Command_L+V)</appendix>
      <appendix>(Control+X to Command_L+X)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.pc_style_copy_paste</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>
        __KeyToKey__
        KeyCode::C, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        KeyCode::C, ModifierFlag::COMMAND_L,
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::V, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        KeyCode::V, ModifierFlag::COMMAND_L,
      </autogen>
      <autogen>
        __KeyToKey__
        KeyCode::X, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        KeyCode::X, ModifierFlag::COMMAND_L,
      </autogen>
    </item>
    <item>
      <name>Use PC Style Copy/Paste #2</name>
      <appendix>(Swap Control+C and Command_L+C)</appendix>
      <appendix>(Control+V to Command_L+V)</appendix>
      <appendix>(Control+X to Command_L+X)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.copy_paste_winstyle2</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::C, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::C, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::V, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::V, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::X, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::X, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::C, ModifierFlag::COMMAND_L, KeyCode::C, ModifierFlag::CONTROL_L</autogen>
    </item>
    <item>
      <name>Use PC Style Copy/Paste #3</name>
      <appendix>(Control+Insert to Command_L+C)</appendix>
      <appendix>(Shift+Insert to Command_L+V)</appendix>
      <appendix>(Shift+Delete to Command_L+X) (Note: "Delete" is Mac's Forward Delete)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <!-- Note: identifier name (*_2) is valid for compatibility. -->
      <identifier>remap.copy_paste_winstyle_2</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::PC_INSERT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::C, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::PC_INSERT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT, KeyCode::V, ModifierFlag::COMMAND_L</autogen>
      <autogen>__KeyToKey__ KeyCode::FORWARD_DELETE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_SHIFT, KeyCode::X, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Copy-Paste #4</name>
      <appendix>Change Command+Insert to Command+C</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.copy_paste_winstyle_4</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::PC_INSERT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, KeyCode::C, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND</autogen>
    </item>
    <item>
      <name>Use PC Style Undo</name>
      <appendix>(Control+Z to Command_L+Z)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.undo_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::Z, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::Z, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Select All</name>
      <appendix>(Control+A to Command_L+A)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.select_all_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::A, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::A, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Save</name>
      <appendix>(Control+S to Command_L+S)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.save_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::S, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::S, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style New</name>
      <appendix>(Control+N to Command_L+N)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.new_winstyle_no_term</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::N, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::N, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style New Tab</name>
      <appendix>(Control+T to Command_L+T)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
      <identifier>remap.copy_paste_winstyle_new_tab</identifier>
      <not>{{ PC_STYLE_BINDINGS_IGNORE_APPS }}</not>
      {{ PC_STYLE_BINDINGS_IGNORE_EXTRA }}
      <autogen>__KeyToKey__ KeyCode::T, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::T, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style New Tab #2 (Browser only)</name>
      <appendix>(Control+T to Command_L+T)</appendix>
      <appendix></appendix>
      <appendix>(Only in Firefox, Google Chrome, Opera, Safari)</appendix>
      <identifier>remap.copy_paste_winstyle_new_browser_tab</identifier>
      <only>FIREFOX, GOOGLE_CHROME, OPERA, SAFARI</only>
      <autogen>__KeyToKey__ KeyCode::T, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, KeyCode::T, ModifierFlag::COMMAND_L</autogen>
    </item>
    <item>
      <name>Use PC Style Open In New Tab (Browser only) Control+LeftClick to Command+LeftClick</name>
      <identifier>remap.pointing_controlLeftclick2commandLeftclick</identifier>
      <autogen>
        __KeyToKey__
        PointingButton::LEFT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL,
        PointingButton::LEFT, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND
      </autogen>
      <only>FIREFOX, GOOGLE_CHROME, OPERA, SAFARI</only>
    </item>
    <item>
      <name>Use PC Style Find</name>
      <appendix>(Control+F to Command_L+F)</appendix>
      <appendix>(Control+G to Command_L+G)</appendix>
      <appendix>(F3 to Command_L+G)</appendix>
      <appendix>(Control+F3 to Shift+Command_L+G)</appendix>
      <appendix></appendix>
      <appendix>{{ PC_STYLE_BINDINGS_IGNORE_APPS_DESCRIPTION }}</appendix>
{'fraction_non_alphanumeric': 0.12040377472498179, 'fraction_numerical': 0.003181147701220921, 'mean_word_length': 3.8433465312446202, 'pattern_counts': {'":': 0, '<': 1698, '<?xml version=': 2, '>': 1698, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6645266', 'n_tokens_mistral': 19812, 'n_tokens_neox': 19100, 'n_words': 2747}