blessed icon indicating copy to clipboard operation
blessed copied to clipboard

Duplicate characters in textbox

Open kristerj opened this issue 6 years ago • 1 comments

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

kristerj avatar Nov 08 '18 04:11 kristerj

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.

DmitrySkripkin avatar Mar 02 '19 19:03 DmitrySkripkin