Things to do in Cape Town, the Helderberg, and the Cape Winelands

Tag listener

How to Detect an ESC key press using jQuery?

As per usual, the always brilliant jQuery javascript library makes it particularly easy to detect and act on a keyboard button press action. For this particular snippet we are interesting in binding our function to the user hitting the Escape… Continue Reading →

© 2021 An Exploring South African — Powered by WordPress