summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 6a52d3e..9692f36 100644
--- a/static/script.js
+++ b/static/script.js
@@ -201,7 +201,7 @@ document.addEventListener('mousedown', function(e) {
focus(e.target);
} else if (Array.from(e.target.classList).includes('key')) {
e.preventDefault();
- var k = e.target.innerText
+ var k = e.target.getAttribute('data-key')
keyHandler(k)
}
})