Replacing Double-Dashes With Em Dashes While Typing In JavaScript

added by JavaScript Kicks
8/15/2018 4:10:30 PM

1014 Views

Ben Nadel demonstrates one way to auto-inject an Em Dash in JavaScript when the user types two dashes (hyphens) in a row. While there are keyboard short-cuts for the Em Dash (SHIFT+Option+Hyphen), it's certainly a nice delighter when an application auto-injects the Em Dash for you as part of the user experience.


0 comments