Permalink
Browse files

Tab and Shift should not be assigned as a key

  • Loading branch information...
1 parent 3d3469a commit d3a01c17db64d4fabbad29b18d605992b633270f @anwar3746 committed Jun 24, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 braille.js
View
@@ -57,6 +57,8 @@ $( document ).ready(function(){
console.log("Value = "+val+"Key = "+key);
$("#key"+key).val(keyboardMap[val]);
$("#key"+key).keydown(function(event){
+ if (keyboardMap[event.keyCode] == "TAB" || keyboardMap[event.keyCode] == "SHIFT" )
+ return;
event.preventDefault();
console.log("This is from : "+val+" Pressed = "+keyboardMap[event.keyCode]+" Key code : "+event.keyCode);
@@ -68,7 +70,7 @@ $( document ).ready(function(){
$.each(keycode_map, function(key, val){
if(val == event.keyCode){
console.log("Other Exist");
- $(this).val("None");
+ $(this).val("NONE");
exist_flag = 1;
}
});

0 comments on commit d3a01c1

Please sign in to comment.