Question: On my MacPro there is one issue (and guys from Apple think this is feature...) that annoys me very much: there is a time delay between CapsLock switching. I used to do that fast. If I go to preferences and reassign caps lock to any other button and then back it works OK then, so it is not a hardware problem.

Is there any way to fix that ?

Answer: 
1. Download and install the following software
	* Karabiner
	* Hammerspoon
2. Use Karabiner maps CapsLock key to F19.
3. Edit `init.lua` under the path `~/.hammerspoon`, paste the code below.

```lua
pressedF19 = function()
    hs.hid.capslock.toggle()
end

hs.hotkey.bind({}, 'F19', pressedF19, nil)

```

Then reload the hammerspoon config for changes to take effect.

See my blog here <http://hellohtml5.com/2019/04/25/best-way-to-disable-capslock-delay-on-mac/>
Not really sure about this, but google found [this](https://discussions.apple.com/thread/1169783?start=0&tstart=0). This was one of the suggestions, but it does not seem foolproof (or even close). There are more suggestions on the page.

> 
> 1. Go to System Preferences > Keyboard & Mouse > Keyboard. Click on Modifier Keys. In the window that opens, for the Caps Lock key, select "No Action"
> 2. Install the "No CapsLock" script. Download at
>  <http://home2.btconnect.com/Taniwha/> (look near bottom of page)
> 
> 
> 

In addition, if you hold down the key, even for a fraction of a second, it will go on automatically.