Skip to content

Instantly share code, notes, and snippets.

@drye
Last active December 15, 2015 15:29
Show Gist options
  • Save drye/5282375 to your computer and use it in GitHub Desktop.
Save drye/5282375 to your computer and use it in GitHub Desktop.
Private.xml file for KeyRemap4MacBook - changing the keyboard layout to Slovenian language temporarily while pressing the Caps lock key.
<?xml version="1.0"?>
<root>
<item>
<name>Slovenian charaters while holding caps lock (mapped to F19 with pc keyboard hack)</name>
<identifier>private.slovenian_chars</identifier>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::VK_NONE,
Option::KEYTOKEY_BEFORE_KEYDOWN,
KeyCode::VK_CHANGE_INPUTMODE_SLOVENIAN,
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,
Option::KEYTOKEY_AFTER_KEYUP,
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,
KeyCode::VK_CHANGE_INPUTMODE_ENGLISH
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment