From f080dcc55f1b4bdf35b1dbc6911739ea2ef6275f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 3 Oct 2017 01:29:14 +0200 Subject: [PATCH] workaround for https://github.com/espterm/espterm-firmware/issues/240 --- js/term/soft_keyboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/term/soft_keyboard.js b/js/term/soft_keyboard.js index 55bfa82..9d89960 100644 --- a/js/term/soft_keyboard.js +++ b/js/term/soft_keyboard.js @@ -48,6 +48,7 @@ module.exports = function (screen, input) { // sends the difference between the last and the new composition string let sendInputDelta = function (newValue) { + if (newValue === null) newValue = '' // this sometimes happens, why? let resend = false if (newValue.length > lastCompositionString.length) { if (newValue.startsWith(lastCompositionString)) {