js: Remove the charCode argument from key()

It hasn't been used in a while.
This commit is contained in:
Ben Harris
2022-10-24 22:37:30 +01:00
parent 9698732d65
commit 0db5fb525b
2 changed files with 3 additions and 3 deletions

View File

@ -311,10 +311,10 @@ function initPuzzle() {
// the puzzle - so users of this puzzle collection in other media
// can indulge their instinct to press ^R for redo, for example,
// without accidentally reloading the page.
key = Module.cwrap('key', 'void', ['number', 'number', 'string',
key = Module.cwrap('key', 'void', ['number', 'string',
'string', 'number', 'number']);
onscreen_canvas.onkeydown = function(event) {
key(event.keyCode, event.charCode, event.key, event.char,
key(event.keyCode, event.key, event.char,
event.shiftKey ? 1 : 0, event.ctrlKey ? 1 : 0);
event.preventDefault();
};