Hacker News new | ask | show | jobs
by rdatajef 4528 days ago
Does anyone know of any software that can do this (for OS X)? I think double-tap Shift to toggle Caps Lock would be pretty neat. Or even better, I'd like to program an action after double-Shift (or other modifier keys too, Control, Option, Command).

Edit: I got this to work using KeyRemap4MacBook, if anyone's interested, use this snippet in private.xml:

  <item>
    <name>Double-Shift to Caps Lock</name>
    <appendix>Double-tap ⇧ to Caps Lock</appendix>
    <identifier>double_tap_shift_to_caps_lock</identifier>
    <autogen>
      --DoublePressModifier--
      KeyCode::SHIFT_L,
      KeyCode::SHIFT_L,
      KeyCode::CAPSLOCK
    </autogen>
  </item>