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)) {