Skip to content

Commit

Permalink
Reduce chatter on keypresses
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Jun 5, 2020
1 parent 3ccc0b8 commit edf0745
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions via.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,7 @@ define(['./utils'], function (utils) {
}

var colrow = self.keycodeToRowCol[!!shiftDown][key];
if (!colrow) {
console.log("Unknown keycode: " + key);
console.log("Please check here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.keyCode");
return;
}
if (!colrow) return;

self.keys[colrow[0]][colrow[1]] = val;
self.updateKeys();
Expand Down

0 comments on commit edf0745

Please sign in to comment.