Hacker News new | ask | show | jobs
by thedirt0115 2243 days ago
AutoHotkey can do this "caps lock as both escape and control" thing too. I use this, from http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows :

  ; Author: fwompner gmail com
  #InstallKeybdHook
  SetCapsLockState, alwaysoff
  Capslock::
  Send {LControl Down}
  KeyWait, CapsLock
  Send {LControl Up}
  if ( A_PriorKey = "CapsLock" )
  {
      Send {Esc}
  }
  return