summaryrefslogtreecommitdiff
path: root/ports/javascript/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'ports/javascript/library.js')
-rw-r--r--ports/javascript/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/javascript/library.js b/ports/javascript/library.js
index 9aab3e432..a8e54aaac 100644
--- a/ports/javascript/library.js
+++ b/ports/javascript/library.js
@@ -55,7 +55,7 @@ mergeInto(LibraryManager.library, {
var n = fs.readSync(process.stdin.fd, buf, 0, 1);
if (n > 0) {
if (buf[0] == mp_interrupt_char) {
- Module.ccall('mp_keyboard_interrupt', 'null', ['null'], ['null']);
+ Module.ccall('mp_sched_keyboard_interrupt', 'null', ['null'], ['null']);
} else {
process.stdout.write(String.fromCharCode(buf[0]));
}