cpsdqs/unified-input
cpsdqs 7 years ago
parent 2d22efc8f3
commit 190b1e6422
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 6
      jssrc/soft_keyboard.js

@ -67,6 +67,10 @@ window.initSoftKeyboard = function (screen) {
} }
}) })
input.addEventListener('keypress', e => {
e.stopPropagation()
})
input.addEventListener('input', e => { input.addEventListener('input', e => {
e.stopPropagation() e.stopPropagation()
@ -78,7 +82,7 @@ window.initSoftKeyboard = function (screen) {
lastCompositionString = '' lastCompositionString = ''
sendInputDelta('') sendInputDelta('')
} else if (e.inputType === 'insertText') { } else if (e.inputType === 'insertText') {
// this is a sane event, which means the keypress handler will get it Input.sendString(e.data)
} }
} }
}) })

Loading…
Cancel
Save