summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-02-26 01:58:12 -0500
committercyfraeviolae <cyfraeviolae>2022-02-26 01:58:12 -0500
commit8c6484af2930546ba61288c4ce156e5aab74f268 (patch)
tree85cd789f2802c63ada30aef421217bfb78a2fdcf /static
parent944fe3f36a79cf9cb548d785ebd9f11792793a64 (diff)
bksp
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)
}
})