After years, well over a decade actually, of working on a PC I have purchased a MacBook Pro. The reasons why I purchased a MacBook over another PC is a topic for another post.
Upon spending some real time on the machine I began to notice something troubling, to me at least. I noticed that I could not turn the “caps lock” on with just a gentle brush of my finger. So, I did what anyone would do. I pecked at the caps lock key for a few minutes to try and determine if it was an angle thing, pressure thing or timing thing. This called for some research!
For the sake of brevity it’s a “feature”. Apple intentionally added the delay so users would not accidentally trigger the caps lock. More information can be found here.
This “feature” was a real problem for me as it impacted my typing speed and accuracy. I was ready to return the machine over this “feature”. After researching for an hour or so I found three solutions (the order in which I found them).
Solution #1:
This was the first solution I found and I was relieved to find it at the time. Unfortunately this solution only works until you restart the machine. The “solution” is to flip some settings back and forth in the system preferences -> keyboard settings. You can find the steps here.
Solution #2:
Install software! Two application working in tandem can remove the delay. The two apps are; PCKeyboardHack and KeyRemap4MacBook. Both apps are free, from the same developer, and appear to utilize few system resources.
Solution #3:
Get out your AppleScript books. Here I sit, completely new to Mac’s, and I am researching how and if I can write an AppleScript to address this delay. Can it be done……the answer is yes. I wrote an AppleScript that automates the steps from solution #1 above. Just add the script to your machine, set it up to run when you log in and you are all set. Disclaimer: I take no responsibility for any negative impact the script may have.
| 01 | tell application "System Preferences" |
| 02 | activate |
| 03 | set current pane to pane "com.apple.preference.keyboard" |
| 04 | end tell |
| 05 | |
| 06 | tell application "System Events" |
| 07 | tell application process "System Preferences" |
| 08 | get properties |
| 09 | |
| 10 | click button "Modifier Keys…" of tab group 1 of window "Keyboard" |
| 11 | tell sheet 1 of window "Keyboard" |
| 12 | click pop up button 4 |
| 13 | click menu item -1 of menu 1 of pop up button 4 |
| 14 | click button "OK" |
| 15 | end tell |
| 16 | |
| 17 | click button "Modifier Keys…" of tab group 1 of window "Keyboard" |
| 18 | tell sheet 1 of window "Keyboard" |
| 19 | click pop up button 4 |
| 20 | click menu item 1 of menu 1 of pop up button 4 |
| 21 | click button "OK" |
| 22 | end tell |
| 23 | end tell |
| 24 | tell application "System Preferences" to quit |
| 25 | end tell |