Install KeyRemap4MacBook and save a file like this as ~/Library/Application Support/KeyRemap4MacBook/private.xml
:
<?xml version="1.0"?>
<root>
<item>
<name>test</name>
<identifier>test</identifier>
<autogen>__KeyToKey__ KeyCode::R, VK_CONTROL, KeyCode::T</autogen>
<autogen>__KeyToKey__ KeyCode::E, VK_CONTROL, KeyCode::T, ModifierFlag::SHIFT_L</autogen>
</item>
</root>
Then open the KeyRemap4MacBook application, press the ReloadXML button, and enable the setting.
<autogen>__KeyToKey__ KeyCode::UK_SECTION, KeyCode::T</autogen>
would change the key above tab on ISO keyboards to T.
You can see key codes with EventViewer.app
, which is in /Applications/KeyRemap4MacBook.app/Contents/Applications/
.
See https://pqrs.org/macosx/keyremap4macbook/xml.html.en or http://osxnotes.net/keyremap4macbook.html for more information.