and also fix #189
@ -65,13 +65,8 @@ module.exports = function (screen, input) {
keyInput.value = ''
if (e.key === 'Backspace') {
e.preventDefault()
input.sendString('\b')
} else if (e.key === 'Enter') {
input.sendString('\x0d')
}
e.stopPropagation()
input.handleKeyDown(e)
})
keyInput.addEventListener('keypress', e => {
@ -444,7 +444,9 @@ module.exports = function (conn, screen) {
*/
blockKeys (yes) {
cfg.no_keys = yes
},
handleKeyDown
return input