I am trying capture character codes using keyUp in jQuery. I'm trying to capture both when the = sign (not on the numeric keyboard) and the + sign (also not on the numeric keyboard) are pressed. The thing is, the character key for them is both. If you press it normally, you get =. If you shift+press it, then you get +. My code goes like this:
(document).keyup(function(evt) {
keyPressed = evt.keyCode ? evt.keyCode : evt.charCode;
switch (keyPressed) {
case 187: // perfectly captures the equal key pressed
case ???: // what should I put here
// ........
So how do I capture (possibly in this case statement) when they key PLUS shift is being pressed? Is there some elegant way to do it?