From 25758dc3ab2dd2cfbd5d3d11c0b7251b08fcf9c4 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Mon, 27 Sep 2021 16:33:24 -0400 Subject: [PATCH] Fix event handler for clicking on story text It wouldn't trigger any events originally when you click on parts of the story text area that didn't contain any text, e.g. on a blank line or on the blank part of a line to the right of the actual text. --- static/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/application.js b/static/application.js index f78a2043..2410894c 100644 --- a/static/application.js +++ b/static/application.js @@ -1352,7 +1352,7 @@ $(document).ready(function(){ chunkOnKeyDown ).on('paste', chunkOnPaste - ).on('focus', + ).on('click', chunkOnSelectionChange ).on('keydown', chunkOnSelectionChange