Handle all received keydown keys in soft input

and also fix #189
box-drawing
cpsdqs 7 years ago
parent 09d3fff59d
commit df4c75b370
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 9
      js/soft_keyboard.js
  2. 4
      js/term_input.js

@ -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') {
e.preventDefault()
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
}

Loading…
Cancel
Save