From 190b1e6422ba0d480763529dcec99abd1ecbe881 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Mon, 11 Sep 2017 14:42:51 +0200 Subject: [PATCH] Fix #151 --- jssrc/soft_keyboard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jssrc/soft_keyboard.js b/jssrc/soft_keyboard.js index 7a22183..d3059d5 100644 --- a/jssrc/soft_keyboard.js +++ b/jssrc/soft_keyboard.js @@ -67,6 +67,10 @@ window.initSoftKeyboard = function (screen) { } }) + input.addEventListener('keypress', e => { + e.stopPropagation() + }) + input.addEventListener('input', e => { e.stopPropagation() @@ -78,7 +82,7 @@ window.initSoftKeyboard = function (screen) { lastCompositionString = '' sendInputDelta('') } else if (e.inputType === 'insertText') { - // this is a sane event, which means the keypress handler will get it + Input.sendString(e.data) } } })