diff --git a/com/isoterminal/VT100.js b/com/isoterminal/VT100.js index 1282daf..6dd2e0d 100644 --- a/com/isoterminal/VT100.js +++ b/com/isoterminal/VT100.js @@ -1340,6 +1340,15 @@ VT100.prototype.setupTouchInputFallback = function(){ this.form.appendChild(this.input) this.scr_.parentElement.appendChild(this.form) + this.input.addEventListener('blur', () => { + if( this.input.value != '' ){ + ch = '\n' + this.key_buf_.push(ch); + setTimeout(VT100.go_getch_, 0); + this.input.value = '' + } + }) + this.input.addEventListener("keydown", VT100.handle_onkeypress_, false); this.input.handler = (e) => {