Skip to content

Commit 785c47b

Browse files
committed
Change key handling
1 parent 07ddf17 commit 785c47b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/easycoder-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4535,7 +4535,7 @@ const EasyCoder_Browser = {
45354535
document.onKeyListeners.push(program);
45364536
}
45374537
program.onKeyPc = command.pc + 2;
4538-
document.onkeypress = function (event) {
4538+
document.onkeydown = function (event) {
45394539
for (const program of document.onKeyListeners) {
45404540
program.key = event.key;
45414541
try {

js/easycoder/Browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ const EasyCoder_Browser = {
14611461
document.onKeyListeners.push(program);
14621462
}
14631463
program.onKeyPc = command.pc + 2;
1464-
document.onkeypress = function (event) {
1464+
document.onkeydown = function (event) {
14651465
for (const program of document.onKeyListeners) {
14661466
program.key = event.key;
14671467
try {

0 commit comments

Comments
 (0)