Permalink
Browse files

Added new exception maps for the arrow keys. Also changed to work wit…

…h upstream bug fix in GetKeyBoardMapping
  • Loading branch information...
1 parent 25bf29d commit 9ac504f684016c83136a48c221a960a221183605 @AndrewSwerlick committed Sep 14, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 keyMapper.js
View
@@ -16,15 +16,19 @@ var exceptionKeys = {
'186' : '59', //SEMICOLON CHROME
'222' : '34', //QUOTES CHROME
'188' : '44', //COMMA CHROME
-'27' : '65307' //ESC CHROME
+'27' : '65307', //ESC CHROME
+'39' : '65363', //RIGHT ARROW CHROME
+'37' : '65361', //LEFT ARROW CHROME
+'38' : '65362', //UP ARROW CHROME
+'40' : '65364' //DOWN ARROW CHROME
};
function buildASCIIToXKeyMap(XKeysMap,min){
asciiToX = {};
for(i=0; i<XKeysMap.length; i++){
for(j=0; j< XKeysMap[i].length; j++){
key=XKeysMap[i][j];
- value = i + min-1;
+ value = i + min;
if(key!=0) asciiToX[key] = value;
}
}

0 comments on commit 9ac504f

Please sign in to comment.