Skip to content

Instantly share code, notes, and snippets.

@smellman
Created August 6, 2013 03:42
Show Gist options
  • Save smellman/6161826 to your computer and use it in GitHub Desktop.
Save smellman/6161826 to your computer and use it in GitHub Desktop.
Thinkpad Keyboard 用の KeyRemap4MacBookの設定サンプル
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Lenovo</vendorname>
<vendorid>0x17ef</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>THINKPAD_KEYBOARD</productname>
<productid>0x6047</productid>
</deviceproductdef>
<item>
<name>Disable MiddleClick on Thinkpad Keyboard</name>
<appendix></appendix>
<device_only>DeviceVendor::Lenovo, DeviceProduct::THINKPAD_KEYBOARD</device_only>
<identifier>thinkpad.disable.middle.click</identifier>
<autogen>__PointingButtonToKey__ PointingButton::MIDDLE, KeyCode::VK_NONE</autogen>
</item>
<item>
<name>Disable PageUp/PageDown on Thinkpad Keyboard</name>
<appendix></appendix>
<device_only>DeviceVendor::Lenovo, DeviceProduct::THINKPAD_KEYBOARD</device_only>
<identifier>thinkpad.disable.pageup.pagedown</identifier>
<autogen>__KeyToKey__ KeyCode::PAGEUP, KeyCode::VK_NONE</autogen>
<autogen>__KeyToKey__ KeyCode::PAGEDOWN, KeyCode::VK_NONE</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment