Skip to content

Commit

Permalink
fix for keyhit
Browse files Browse the repository at this point in the history
  • Loading branch information
boxgaming committed Mar 15, 2022
1 parent ada45e3 commit 03466d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ var QB = new function() {
if (!_inputMode) {
var kh = _getKeyHit(event);
if (kh) {
_keyHitBuffer.push(kh);
_keyDownMap[kh] = true;
}
}
Expand All @@ -1568,7 +1569,7 @@ var QB = new function() {
_addInkeyPress(event);
var kh = _getKeyHit(event);
if (kh) {
_keyHitBuffer.push(kh);
_keyHitBuffer.push(kh * -1);
_keyDownMap[kh] = false;
}
}
Expand Down

0 comments on commit 03466d5

Please sign in to comment.