From 04133a424cde34fbce3978e538f8db105cadbe9f Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Sat, 26 Feb 2022 01:02:44 -0500 Subject: focus --- index.html | 2 +- static/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1805be4..ad76874 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ Write a line of poetry. Syllables in dark boxes should be stressed.

- +
diff --git a/static/script.js b/static/script.js index 37c5725..2516256 100644 --- a/static/script.js +++ b/static/script.js @@ -192,8 +192,8 @@ document.addEventListener('keydown', function(e) { }) document.addEventListener('mousedown', function(e) { - console.log('click', e.target) if (Array.from(e.target.classList).includes('entrybox')) { + e.preventDefault(); unfocus(document.querySelector(`[data-offset="${focused}"]`)); focus(e.target); } -- cgit v1.2.3