July 2, 2009. Complaints are raised on Meta Stack Overflow over the styling of
<kbd> tags. One helpful commenter humorously suggested that
Now all they need is an onclick handler to make them look like you are pressing them. Then an alert box pops up and says "On your keyboard, idiot!".
This is what this script does.
What about links?
Putting links in
<kbd>s in links) is generally a Bad Idea. However, it happens, and sometimes you want to click them. To compensate for this, any
<kbd> that contains a link or is contained directly within one will not trigger an alert.
Or copy and paste this into a bookmarklet:
Runs on any browser that jQuery supports (which is quite a few).
It's just me, @michaelb958. You can contact me by:
- Commenting on or answering this post. This is the preferred mechanism for providing feedback or suggestions.
- Pinging me on chat. For general conversation and stuff.
- Emailing me (email address available on my GitHub profile). For use in case of emergency.