blessed
blessed copied to clipboard
Duplicate characters in textbox
I have a textbox in a form:
var lname=this.blessed.textbox({ parent: this.form, top: '40%', left: '30%', height: '20%', width: '40%', name: 'name', inputOnFocus: true, border: 'line', style: { bg: 'blue', focus: { bg: 'white', fg: 'blue' }, hover: { bg: 'white', fg: 'blue' } } });
After you focus on the textbox the second time using the mouse, characters input into it are duplicated (aaddmmiinn). Is this a bug or did I mess something up? Code is at: https://github.com/kristerj/dadOS/blob/master/termView.js
I had same problem. Just remove lname.focus()
if you have it somewhere. But yes, somehow input can be focused twice, so any input doubles.