<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Engineering on Capslock</title><link>https://caps.pgsty.com/categories/engineering/</link><description>Recent content in Engineering on Capslock</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 06 Nov 2026 19:02:03 +0800</lastBuildDate><atom:link href="https://caps.pgsty.com/categories/engineering/index.xml" rel="self" type="application/rss+xml"/><item><title>How Capslock works: F18, an event tap, and a mapping it gives back</title><link>https://caps.pgsty.com/blog/post/how-capslock-works/</link><pubDate>Fri, 06 Nov 2026 00:00:00 +0000</pubDate><guid>https://caps.pgsty.com/blog/post/how-capslock-works/</guid><description>&lt;p&gt;Caps Lock sits in the best spot on the keyboard and does the least useful job.&#10;Capslock gives it a new one: tap it for Escape, hold it for Hyper, and combine&#10;it with the four modifiers to reach sixteen control planes. This post explains&#10;how a native app does that on macOS without a kernel extension, a driver, or a&#10;privileged helper.&lt;/p&gt;&#10;&lt;h2 id="not-a-modifier"&gt;Caps Lock is not a modifier&#10;&lt;/h2&gt;&#10;&lt;p&gt;macOS does not report Caps Lock as a key that goes down and comes back up. It&#10;reports a lock state that flips, and it adds a short delay so that brushing the&#10;key does not toggle it. That is fine for typing capitals and useless for a&#10;modifier that must be held.&lt;/p&gt;</description></item></channel></rss>