Skip to content

cornips/js-keyboard-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-keyboard-keys

Some simple code to include working keyboard key visuals to help explain users keyboard shortcuts. Automatically adapts for Windows/Mac users.

Demo

Checkout the demo

Usage

<span class="key-ctrl">Ctrl</span>
<span class="key-shift">Shift</span>
<span class="key-alt">Alt</span>
<span class="key-meta">⊞ Win</span>

JavaScript will change buttons to Mac variants.