Keycaster is a project mainly written in JavaScript, it's free.
A jQuery plugin that adds a keystroke and mouse visualizer to your browser window.
Page Head
<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<!-- Keycaster script -->
<link href="css/keycaster.css" type="text/css" rel="stylesheet" />
<script src="js/jquery.keycaster.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
keycaster({
key : 'value'
});
})
</script>
CSS: (contents of "keycaster.css" shown)
/* display window */
#keycaster {
list-style: none;
width: 500px;
text-align: left;
background: #222;
border: #555 1px solid;
border-radius: 1em;
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
padding: 20px;
position: absolute;
right : 10px;
top: 10px;
}
/* all keys */
.keycasterKey {
font-size: 18px;
font-weight: 900;
padding: .2em .5em;
line-height: 2.2em;
border: transparent 5px solid;
white-space: nowrap;
}
/* named keys (e.g. Shift, Alt, Insert, etc.) */
.keycasterKey.namedKeys {
border-color: #555;
border-radius: .5em;
-moz-border-radius: .5em;
-webkit-border-radius: .5em;
}
/* animated png default z-index */
.clickedArea {
z-index: 9999;
}
/* animated png must be under radio buttons & link so they work */
.underArea {
z-index: -10;
}
keycaster({
// display window
abbrevName : true, // if true, abbreviated key names will show (not all unicode symbols work in IE, so set this to false)
lines : 4, // number of lines shown in the window
displayTime : 1500, // time in milliseconds to display the line
showShift : false, // if true, show shift key
showBksp : false, // if true, the backspace key will show
showUnKey : false, // if true, releasing meta keys will add an "un-" meta key message
unMessage : 'Un-', // Un- message, just because I'm crazy like that
// animated png - shown when mouse clicked on screen
imgUrl : 'images/click-blue.png', // image with frame blocks for animation
imgFrames : 6, // number of frames to animate
imgsize : 150, // image height & width
imgtime : 75, // time in milliseconds between images
// class names applied to keys
keyWrapper : 'kbd', // HTML tag wrapped around the displayed key
namedKey : 'namedKeys', // named key class - found in keycaster.keys
regKey : 'regKeys' // un-named key class
});
abbrevName
If true, the script uses the abbreviated key name from the keycaster.keys object.
If false, the full key name as set in the keycaster.keys object will be displayed.
Each key is defined in the keycaster.keys object as follows:
(event.which value) : [ 'Full key name', 'Abbreviated key name/symbol' ]
The abbreviated names include some unicode symbols which don't work in all browsers (namely IE).
Default is true.
lines
<li>
displayTime
showShift
showBksp
showUnKey
unMessage
showUnKey
is set to true, this text is added to the beginning of the key name in the display window to show that the key was released.imgUrl
imgFrames
imgsize
imgsize
applies to both the image height and width.imgtime
keyWrapper
kbd
was used by default, but can be changed to any HTML tag as the style is set in the css to the "keycasterKey" class added to these tags.namedKey
keyWrapper
.regKey
keyWrapper
.Version 1.1.3
Version 1.1.2
Version 1.1.1
Version 1.1
Version 1.0 beta
Version 0.9 alpha