Skip to content

Commit

Permalink
fix in keyboard events
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiljevic committed Aug 20, 2019
1 parent 0d80bd7 commit 56e4ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygame/__init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var createKeyboardEvent = function (event) {
return [keyPGConstant, { key: PygameLib.constants.K_DOWN }];
default:
var difference = 0;
if ((event.which <= 90) || (event.which >= 65))
if ((event.which <= 90) && (event.which >= 65))
difference = 32;
return [keyPGConstant, { key: (event.which + difference)}];
}
Expand Down

0 comments on commit 56e4ec8

Please sign in to comment.