summaryrefslogtreecommitdiff
path: root/wwwroot/js/keyboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'wwwroot/js/keyboard.js')
-rw-r--r--wwwroot/js/keyboard.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/wwwroot/js/keyboard.js b/wwwroot/js/keyboard.js
index 59eec4c..8b46639 100644
--- a/wwwroot/js/keyboard.js
+++ b/wwwroot/js/keyboard.js
@@ -49,6 +49,9 @@ async function keyDownHandler(e) {
e.preventDefault();
return;
}
+
+ if(typeof pageKeyDownHandler == 'function')
+ pageKeyDownHandler(e);
}
window.onload = () => document.onkeydown = keyDownHandler; \ No newline at end of file