To detect if the caps lock is on, use the getModifierState() method for the KeyboardEvent object: const capslockIsOn = event.getModifierState(modifier); The getModifierState() (...)... (more…)
Read more »
Learn how to use the ES6 destructuring expression in JavaScript to extract values from arrays or properties from objects into distinct variables. (more…)
Read more »
I have a weird way of describing software. And you’ll either know what I mean, or you won’t. It’s sort of strange, but software interfaces feel like they have a weight. When I use an interface, it can feel heavy, or it can feel light. Neither is better th... (more…)
Read more »
A rugged, minimal framework for composing JavaScript behavior in your markup. - alpinejs/alpine... (more…)
Read more »
In this article, I’ll aim to explain both why I chose not to use any client-side JavaScript when building Swift by Sundell, and why I thought that it was important to emphasize that fact at the bottom of every page. (more…)
Read more »