Skip to content

Dev #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2020
Merged

Dev #129

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Change key handling
  • Loading branch information
graham-trott committed Jun 16, 2020
commit 785c47b95c455ce40718694fe9e8afde18c78118
2 changes: 1 addition & 1 deletion dist/easycoder-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/easycoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4535,7 +4535,7 @@ const EasyCoder_Browser = {
document.onKeyListeners.push(program);
}
program.onKeyPc = command.pc + 2;
document.onkeypress = function (event) {
document.onkeydown = function (event) {
for (const program of document.onKeyListeners) {
program.key = event.key;
try {
Expand Down
2 changes: 1 addition & 1 deletion js/easycoder/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ const EasyCoder_Browser = {
document.onKeyListeners.push(program);
}
program.onKeyPc = command.pc + 2;
document.onkeypress = function (event) {
document.onkeydown = function (event) {
for (const program of document.onKeyListeners) {
program.key = event.key;
try {
Expand Down