From b3fea7f5261ddac5957d3f7dd85464aec3727f08 Mon Sep 17 00:00:00 2001 From: Henk Date: Sun, 10 Apr 2022 09:04:31 +0200 Subject: [PATCH] Fix Android Keyboards --- static/application.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/application.js b/static/application.js index 9d4dbd28..1a6b8fe8 100644 --- a/static/application.js +++ b/static/application.js @@ -1325,9 +1325,7 @@ function chunkOnBeforeInput(event) { document.execCommand('delete'); } var s = rangy.getSelection(); - if(!s.isCollapsed) { - s.deleteFromDocument(); - } + if(buildChunkSetFromNodeArray(getSelectedNodes()).size === 0) { var s = rangy.getSelection(); var r = s.getRangeAt(0);