Get Key Up Character With Shift

by Kyle Mitofsky

HTML

<script src="http://kylemitofsky.com/libraries/libraries/MapKeyPress.js"></script>
<textarea id="id" placeholder="Type some stuff here"></textarea>
<div id="placeholder"></div>












<!-- Post Info -->
<div style='position:fixed;bottom:0;left:0;    
            background:lightgray;width:100%;'>
    About this SO Post: <a href='http://stackoverflow.com/q/21267805/1366033'> jQuery keyup command with Shift</a><br/>
<div>

JavaScript

$("#id").on("keyup", function(e){
    var myChar = MapKeyPressToActualCharacter(e);
    if (myChar !== false) {
        var msg = "You pressed: " + myChar + "<br/>";
        $("#placeholder").prepend(msg);
    }
});