summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index f9d830e9..b4f71001 100644
--- a/src/main.js
+++ b/src/main.js
@@ -33,8 +33,8 @@ function(textanalysis_ui, textanalysis, buttons, history, drag_n_drop,
}
document.body.onkeyup = function(e) {
- var key = (e.key || (e.charCode && String.charCodeAt(e.charCode))
- || (e.which && String.charCodeAt(e.which))).toLowerCase();
+ var key = (e.key || (e.charCode && String.fromCharCode(e.charCode))
+ || (e.which && String.fromCharCode(e.which))).toLowerCase();
if (e.altKey && e.ctrlKey && key == 'i') {
$('#textanalyser').focus();